Quickly sandbox your AI agent.
Python
Clarify package-index argument handling
Tyler Payne800df145150c
diff --git a/packages/dev/quicksand-image-tools/quicksand_image_tools/build_utils.py b/packages/dev/quicksand-image-tools/quicksand_image_tools/build_utils.pyindex 359db58..f2f7f6b 100644--- a/packages/dev/quicksand-image-tools/quicksand_image_tools/build_utils.py+++ b/packages/dev/quicksand-image-tools/quicksand_image_tools/build_utils.py@@ -33,7 +33,7 @@ async def run_python_install("""Run a Python installer in a Unix guest using the host's package indexes.The guest needs Python 3 and a stdin-capable agent. Index settings apply only- to this command; they are not saved in the image or included in command logs.+ to this command and travel over stdin, not command arguments or guest config."""index_env = {name: os.environ[name] for name in _PYTHON_INDEX_VARIABLES if name in os.environ}if not index_env:diff --git a/tests/unit/test_overlay_python_indexes.py b/tests/unit/test_overlay_python_indexes.pyindex 30f444b..4ad6149 100644--- a/tests/unit/test_overlay_python_indexes.py+++ b/tests/unit/test_overlay_python_indexes.py@@ -37,7 +37,7 @@ async def test_python_install_preserves_default_behavior_without_indexes():@pytest.mark.asyncio-async def test_python_install_passes_only_index_settings_without_logging_urls(monkeypatch):+async def test_python_install_passes_only_index_settings_through_stdin(monkeypatch):indexes = {"PIP_INDEX_URL": "https://example-user:[email protected]/simple/","PIP_EXTRA_INDEX_URL": "https://extra.invalid/simple/",