buildPythonPackage: install builds reproducibly

Without --build a temporary directory is created to unpack the wheel in.
We now set a directory instead.
This commit is contained in:
Frederik Rietdijk 2016-12-13 14:31:47 +01:00
parent b1c20ad384
commit 2bcd41b9ff

View File

@ -24,7 +24,7 @@ attrs // {
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
pushd dist
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache ${toString installFlags}
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache ${toString installFlags} --build tmpbuild
popd
runHook postInstall