The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(install): pass --no-registry to every bootstrap uv python install
ethernet9a3fcf975626
diff --git a/scripts/install.sh b/scripts/install.shindex 9c9e18cf51f..58b0ace8bd7 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -449,7 +449,7 @@ bootstrap_python() {# This interpreter only boots PM; PM still owns the exact runtime pin.if ! boot_py="$(UV_SYSTEM_PYTHON=1 UV_NO_PROJECT=1 "$UV_CMD" python find --managed-python "$_py" 2>/dev/null)" \&& ! boot_py="$("$UV_CMD" python find --system --no-project "$_py" 2>/dev/null)"; then- "$UV_CMD" python install --no-bin "$_py" || fail "bootstrap Python installation failed"+ "$UV_CMD" python install --no-bin --no-registry "$_py" || fail "bootstrap Python installation failed"boot_py="$(UV_SYSTEM_PYTHON=1 UV_NO_PROJECT=1 "$UV_CMD" python find --managed-python "$_py")" || fail "bootstrap Python lookup failed"fiboot_py="${boot_py%$'\r'}"diff --git a/setup-hermes.ps1 b/setup-hermes.ps1index 0da6d538354..481b261bd20 100644--- a/setup-hermes.ps1+++ b/setup-hermes.ps1@@ -80,7 +80,7 @@ Write-Host '(first run on a fresh checkout can take 1-5 minutes)'Push-Location $repotry {# PM can replace its uv entry only after the bootstrap uv has exited.- & $uv python install --no-bin $pyVersion+ & $uv python install --no-bin --no-registry $pyVersionif ($LASTEXITCODE -ne 0) { throw 'bootstrap Python installation failed' }$bootPy = (& $uv python find --managed-python $pyVersion) -join "`n"if ($LASTEXITCODE -ne 0 -or -not $bootPy) { throw 'bootstrap Python lookup failed' }diff --git a/setup-hermes.sh b/setup-hermes.shindex 1e8acf91bb8..a9ee6b95720 100755--- a/setup-hermes.sh+++ b/setup-hermes.sh@@ -161,7 +161,7 @@ fiecho -e "${CYAN}→${NC} Installing python + tools + dependencies via pm (hash-verified via uv.lock)..."echo -e "${CYAN}→${NC} (first run on a fresh checkout can take 1-5 minutes)"# PM can replace its uv entry only after the bootstrap uv has exited.-"$uv" python install --no-bin "$py_version"+"$uv" python install --no-bin --no-registry "$py_version"boot_py="$("$uv" python find --managed-python "$py_version")"boot_py="${boot_py%$'\r'}"if ! "$boot_py" -m pm.cli install ${runtime_only:+--trust-recorded}; thendiff --git a/tests/pm/test_setup_lock_format.py b/tests/pm/test_setup_lock_format.pyindex 62f499094ef..26bbdf0ae62 100644--- a/tests/pm/test_setup_lock_format.py+++ b/tests/pm/test_setup_lock_format.py@@ -53,7 +53,7 @@ def test_setup_reads_pins_independent_of_indentation(tmp_path, served, indent, bf"printf '%s\\n' \"$*\" >> {shlex.quote(str(calls))}\n"'case "$*" in\n'f' --version) printf \'%s\\n\' "uv {uv_version}" ;;\n'- f' "python install --no-bin {py_version}") ;;\n'+ f' "python install --no-bin --no-registry {py_version}") ;;\n'f' "python find --managed-python {py_version}") printf \'%s\\n\' {shlex.quote(interpreter)} ;;\n'' *) exit 91 ;;\nesac\n')@@ -91,7 +91,7 @@ def test_setup_reads_pins_independent_of_indentation(tmp_path, served, indent, bassert (runtime / f"uv-{uv_version}-{target}" / "uv").read_text() == uv_scriptassert json.loads(receipt.read_text()) == ["install", "--trust-recorded"]assert calls.read_text().splitlines() == [- "--version", f"python install --no-bin {py_version}",+ "--version", f"python install --no-bin --no-registry {py_version}",f"python find --managed-python {py_version}",]assert not (home / ".local").exists()diff --git a/tests/scripts/test_fresh_source_install.py b/tests/scripts/test_fresh_source_install.pyindex d544a892580..3b4640fddea 100644--- a/tests/scripts/test_fresh_source_install.py+++ b/tests/scripts/test_fresh_source_install.py@@ -62,7 +62,7 @@ def test_current_installer_publishes_real_dependencies_and_warm_path(tmp_path, sreturn result# Make the bootstrap layout complete using real uv, including its aliases.- run([uv, "python", "install", "--no-bin", minor])+ run([uv, "python", "install", "--no-bin", "--no-registry", minor])source = tmp_path / "fixture source"source.mkdir()for name in ("pm", "hermes_cli", "hermes_platform"):diff --git a/tests/scripts/test_install_sh_python_pin_indent.py b/tests/scripts/test_install_sh_python_pin_indent.pyindex da697fe1acd..9c32dc58191 100644--- a/tests/scripts/test_install_sh_python_pin_indent.py+++ b/tests/scripts/test_install_sh_python_pin_indent.py@@ -35,7 +35,7 @@ def test_bootstrap_python_reads_pin_independent_of_indentation(tmp_path, indent,f"#!{bash}\nset -eu\n"f"printf '%s\\n' \"$*\" >> {shlex.quote(str(calls))}\n"'case "$*" in\n'- f' "python install --no-bin {py_version}") ;;\n'+ f' "python install --no-bin --no-registry {py_version}") ;;\n'f' "python find --managed-python {py_version}") printf \'%s\\n\' {shlex.quote(interpreter)} ;;\n'' *) exit 91 ;;\n''esac\n',