File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,15 +102,18 @@ def run_tests_in_docker(work_dir: str) -> bool:
102102 install_and_test_script = textwrap .dedent ("""
103103 set -e # Exit on any error
104104
105+ # Ensure image-embedded constraints do not leak into local recipe installs
106+ unset PIP_CONSTRAINT || true
107+
105108 echo "Checking for dependency files..."
106109 # Install dependencies based on available files
107110 if [ -f pyproject.toml ] || [ -f setup.py ]; then
108111 echo "Installing package in editable mode..."
109- PIP_CACHE_DIR=/workspace/.cache/pip PIP_CONSTRAINT= pip install -e .
112+ PIP_CACHE_DIR=/workspace/.cache/pip pip install -e .
110113 echo "Installed package as editable package"
111114 elif [ -f requirements.txt ]; then
112115 echo "Installing from requirements.txt..."
113- PIP_CACHE_DIR=/workspace/.cache/pip PIP_CONSTRAINT= pip install -r requirements.txt
116+ PIP_CACHE_DIR=/workspace/.cache/pip pip install -r requirements.txt
114117 echo "Installed from requirements.txt"
115118 else
116119 echo "No pyproject.toml, setup.py, or requirements.txt found"
You can’t perform that action at this time.
0 commit comments