diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh index e2ceb32130c..598b6f77813 100755 --- a/.clusterfuzzlite/build.sh +++ b/.clusterfuzzlite/build.sh @@ -6,7 +6,8 @@ # Builds the Atheris fuzz targets for ClusterFuzzLite / OSS-Fuzz. # `compile_python_fuzzer` is provided by the base-builder-python image. -pip3 install . +python3 -m pip install --upgrade pip +pip3 install . --uploaded-prior-to=P1D for harness in "$SRC"/haystack/test/fuzz/fuzz_*.py; do name=$(basename "$harness" .py) diff --git a/docs-website/scripts/setup-dev.sh b/docs-website/scripts/setup-dev.sh index 2eb4ceb0e05..5ecc3d432c3 100755 --- a/docs-website/scripts/setup-dev.sh +++ b/docs-website/scripts/setup-dev.sh @@ -22,11 +22,14 @@ if ! command -v python &> /dev/null; then exit 1 fi +echo "⬆️ Upgrading pip..." +python -m pip install --upgrade pip + # Check if base dependencies are installed echo "📦 Checking base dependencies..." python -c "import requests, toml" 2>/dev/null || { echo "⚠️ Installing base dependencies (requests, toml)..." - pip install requests toml + pip install requests toml --uploaded-prior-to=P1D } # Get Haystack version (default to main) @@ -46,7 +49,7 @@ echo "📋 Generated requirements.txt with $(wc -l < requirements.txt) dependenc # Install dependencies echo "⚙️ Installing dependencies..." -pip install -r requirements.txt +pip install -r requirements.txt --uploaded-prior-to=P1D echo "✅ Setup complete! You can now run:" echo " python scripts/test_python_snippets.py --verbose"