@@ -62,7 +62,7 @@ pip install --no-cache-dir uv
6262source ./devel_env_setup.sh
6363# This may have to download and compile some dependencies, and as we don't lock requirements from `build-system.requires`,
6464# we often don't know the correct hashes and `--require-hashes` would therefore fail on non amd64, where building is common.
65- 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
65+ 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
6666EOF
6767
6868# dummy file to make image build wait for this stage
@@ -303,7 +303,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
303303 --mount=type=cache,from=whl-cache,source=/wheelsdir/,target=/wheelsdir/,rw /bin/bash <<'EOF'
304304set -Eeuxo pipefail
305305if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
306- uv pip install /wheelsdir/*.whl
306+ UV_NO_CACHE=false uv pip install /wheelsdir/*.whl
307307fi
308308EOF
309309
@@ -312,8 +312,7 @@ RUN --mount=type=cache,target=/root/.cache/uv /bin/bash <<'EOF'
312312set -Eeuxo pipefail
313313echo "Installing softwares and packages"
314314# we can ensure wheels are consumed from the cache only by restricting internet access for uv install with '--offline' flag
315- # TODO(jdanek): seen some builds fail on GitHub Actions with --offline and see no need to limit ourselves to the cache, will remove this
316- UV_LINK_MODE=copy uv pip install --cache-dir /root/.cache/uv --requirements=./pylock.toml
315+ UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install --offline --cache-dir /root/.cache/uv --requirements=./pylock.toml
317316# Note: debugpy wheel availabe on pypi (in uv cache) is none-any but bundles amd64.so files
318317# Build debugpy from source instead
319318UV_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