Add tljh_post_install hook

This commit is contained in:
Jeremy Tuloup
2019-06-27 11:45:36 +02:00
parent d042724840
commit f3232e7c44
4 changed files with 44 additions and 1 deletions

View File

@@ -58,4 +58,14 @@ def tljh_config_post_install(config):
be the serialized contents of config, so try to not
overwrite anything the user might have explicitly set.
"""
pass
@hookspec
def tljh_post_install():
"""
Post install script to be executed after installation
and after all the other hooks.
This can be arbitrary Python code.
"""
pass

View File

@@ -405,6 +405,9 @@ def run_plugin_actions(plugin_manager, plugins):
))
conda.ensure_pip_packages(USER_ENV_PREFIX, user_pip_packages)
# Custom post install actions
hook.tljh_post_install()
def ensure_config_yaml(plugin_manager):
"""