mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Add tljh_post_install hook
This commit is contained in:
@@ -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
|
||||
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user