mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
bootstrap.py: Only lookup git ref if TLJH_BOOTSTRAP_PIP_SPEC not set
test_bootstrap.py: use `--version main` since there are no tags/releases
This commit is contained in:
@@ -455,16 +455,16 @@ def main():
|
|||||||
if os.environ.get("TLJH_BOOTSTRAP_DEV", "no") == "yes":
|
if os.environ.get("TLJH_BOOTSTRAP_DEV", "no") == "yes":
|
||||||
logger.info("Selected TLJH_BOOTSTRAP_DEV=yes...")
|
logger.info("Selected TLJH_BOOTSTRAP_DEV=yes...")
|
||||||
tljh_install_cmd.append("--editable")
|
tljh_install_cmd.append("--editable")
|
||||||
version = _resolve_git_version(args.version)
|
|
||||||
|
|
||||||
tljh_install_cmd.append(
|
bootstrap_pip_spec = os.environ.get("TLJH_BOOTSTRAP_PIP_SPEC")
|
||||||
os.environ.get(
|
if not bootstrap_pip_spec:
|
||||||
"TLJH_BOOTSTRAP_PIP_SPEC",
|
bootstrap_pip_spec = (
|
||||||
"git+https://github.com/jupyterhub/the-littlest-jupyterhub.git@{}".format(
|
"git+https://github.com/jupyterhub/the-littlest-jupyterhub.git@{}".format(
|
||||||
version
|
_resolve_git_version(args.version)
|
||||||
),
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
tljh_install_cmd.append(bootstrap_pip_spec)
|
||||||
if initial_setup:
|
if initial_setup:
|
||||||
logger.info("Installing TLJH installer...")
|
logger.info("Installing TLJH installer...")
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -100,7 +100,14 @@ def run_bootstrap_after_preparing_container(
|
|||||||
|
|
||||||
bootstrap_script = get_bootstrap_script_location(container_name, show_progress_page)
|
bootstrap_script = get_bootstrap_script_location(container_name, show_progress_page)
|
||||||
|
|
||||||
exec_flags = ["-i", container_name, "python3", bootstrap_script]
|
exec_flags = [
|
||||||
|
"-i",
|
||||||
|
container_name,
|
||||||
|
"python3",
|
||||||
|
bootstrap_script,
|
||||||
|
"--version",
|
||||||
|
"main",
|
||||||
|
]
|
||||||
if show_progress_page:
|
if show_progress_page:
|
||||||
exec_flags = (
|
exec_flags = (
|
||||||
["-e", "TLJH_BOOTSTRAP_DEV=yes", "-e", "TLJH_BOOTSTRAP_PIP_SPEC=/srv/src"]
|
["-e", "TLJH_BOOTSTRAP_DEV=yes", "-e", "TLJH_BOOTSTRAP_PIP_SPEC=/srv/src"]
|
||||||
|
|||||||
Reference in New Issue
Block a user