Skip to content

Commit

Permalink
user env: upgrade jh based on hub spec
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed May 18, 2023
1 parent c1aa30a commit 21312b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 10 additions & 1 deletion tljh/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,20 @@ def ensure_user_environment(user_requirements_txt_file):
pypi_pkgs_to_upgrade,
upgrade=True,
)

# Install/upgrade the jupyterhub version in the user env based on the
# version specification used for the hub env.
#
with open(os.path.join(HERE, "requirements-hub-env.txt")) as f:
jh_version_spec = [l for l in f if l.startswith("jupyterhub>=")][0]
conda.ensure_pip_packages(USER_ENV_PREFIX, [jh_version_spec], upgrade=True)

# Install user environment extras for initial installations
#
if is_fresh_install:
conda.ensure_pip_requirements(
USER_ENV_PREFIX,
os.path.join(HERE, "requirements-user-env-extras.txt"),
upgrade=True,
)

if user_requirements_txt_file:
Expand Down
7 changes: 0 additions & 7 deletions tljh/requirements-user-env.txt

This file was deleted.

0 comments on commit 21312b2

Please sign in to comment.