Skip to content

Commit

Permalink
build.hooks.pyprojectInstallHook: Set UV_NO_INSTALLER_METADATA
Browse files Browse the repository at this point in the history
astral-sh/uv#8877 was merged, but the feature is not released yet.
Set the env var in preparation of the next release that contains the reproducibility fix.
  • Loading branch information
adisbladis committed Dec 4, 2024
1 parent 36d281a commit 7553beb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/hooks/pyproject-install-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ pyprojectInstallPhase() {
export UV_COMPILE_BYTECODE=1
fi

if [ -z "${UV_NO_INSTALLER_METADATA-}" ]; then
export UV_NO_INSTALLER_METADATA=1
fi

for wheel in ./*.whl; do
@uv@/bin/uv pip --offline --no-cache install --no-deps --link-mode=copy --python=@pythonInterpreter@ --system --prefix "$out" $uvPipInstallFlags "$wheel"
echo "Successfully installed $wheel"
Expand Down

0 comments on commit 7553beb

Please sign in to comment.