python3Packages.pip: allow setting reproducible temporary directory via NIX_PIP_INSTALL_TMPDIR
This commit is contained in:
committed by
Frederik Rietdijk
parent
ae1584dc98
commit
aedbade43e
@@ -11,7 +11,9 @@ pipInstallPhase() {
|
||||
export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
|
||||
|
||||
pushd dist || return 1
|
||||
@pythonInterpreter@ -m pip install ./*.whl --no-index --prefix="$out" --no-cache $pipInstallFlags --build tmpbuild
|
||||
mkdir tmpbuild
|
||||
NIX_PIP_INSTALL_TMPDIR=tmpbuild @pythonInterpreter@ -m pip install ./*.whl --no-index --prefix="$out" --no-cache $pipInstallFlags
|
||||
rm -rf tmpbuild
|
||||
popd || return 1
|
||||
|
||||
runHook postInstall
|
||||
|
||||
Reference in New Issue
Block a user