Skip to content

Commit 92b1a44

Browse files
committed
unset pip_constraint
Signed-off-by: Peter St. John <pstjohn@nvidia.com>
1 parent e3a9f3a commit 92b1a44

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ci/scripts/recipes_local_test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)