@@ -59,7 +59,7 @@ pip install --no-cache-dir uv
5959source ./devel_env_setup.sh
6060# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
6161# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
62- UV_LINK_MODE=copy uv pip install --strict --no-deps --refresh --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
62+ UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --strict --no-deps --refresh --no-config --no-progress --verify-hashes --compile-bytecode --index-strategy=unsafe-best-match --requirements=./pylock.toml
6363EOF
6464
6565# dummy file to make image build wait for this stage
@@ -287,7 +287,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
287287 --mount=type=cache,from=whl-cache,source=/wheelsdir/,target=/wheelsdir/,rw /bin/bash <<'EOF'
288288set -Eeuxo pipefail
289289if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
290- uv pip install /wheelsdir/*.whl
290+ UV_NO_CACHE=false uv pip install /wheelsdir/*.whl
291291fi
292292EOF
293293
@@ -296,8 +296,7 @@ RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
296296set -Eeuxo pipefail
297297echo "Installing softwares and packages"
298298# we can ensure wheels are consumed from the cache only by restricting internet access for uv install with '--offline' flag
299- # TODO(jdanek): seen some builds fail on GitHub Actions with --offline and see no need to limit ourselves to the cache, will remove this
300- UV_LINK_MODE=copy uv pip install --cache-dir /root/.cache/uv --requirements=./pylock.toml
299+ UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml
301300# Note: debugpy wheel availabe on pypi (in uv cache) is none-any but bundles amd64.so files
302301# Build debugpy from source instead
303302UV_LINK_MODE=copy uv pip install --no-cache git+https://github.com/microsoft/debugpy.git@v$(grep -A1 '\"debugpy\"' ./pylock.toml | grep -Eo '\b[0-9\.]+\b')
0 commit comments