summary refs log tree commit diff
path: root/pkgs/development/interpreters/python/hooks/pip-install-hook.sh
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2020-11-05 14:55:02 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2020-11-05 15:44:14 +0100
commit75d9e713d98599fdfea87b1231c66813a0dbe5d6 (patch)
treefc3f24b341570760f5530917d64efde432424d69 /pkgs/development/interpreters/python/hooks/pip-install-hook.sh
parent64b75ad5c0fb7d902d0c10c8d54ee29bc1329f27 (diff)
downloadnixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar.gz
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar.bz2
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar.lz
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar.xz
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.tar.zst
nixpkgs-75d9e713d98599fdfea87b1231c66813a0dbe5d6.zip
python3.pkgs.pip: 20.1.1 -> 20.2.4
Reproducible builds of pyproject projects using pip is resolved.

Fixes https://github.com/pypa/pip/issues/7808
Fixes https://github.com/NixOS/nixpkgs/issues/81441

The more recent c409f694807e8cd16db8e2affb630073c1aadc48 caused trouble
with pyproject troubles and had to be reverted anyway.
https://github.com/NixOS/nixpkgs/pull/102222#issuecomment-722380794

Revert "pythonPackages.pip: make reproducible (#102222)"

This reverts commit c409f694807e8cd16db8e2affb630073c1aadc48.

Revert "python3Packages.pip: allow setting reproducible temporary directory via NIX_PIP_INSTALL_TMPDIR"

This reverts commit aedbade43e615d7893d268632f5e7f2570fd3233.
Diffstat (limited to 'pkgs/development/interpreters/python/hooks/pip-install-hook.sh')
-rw-r--r--pkgs/development/interpreters/python/hooks/pip-install-hook.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgs/development/interpreters/python/hooks/pip-install-hook.sh b/pkgs/development/interpreters/python/hooks/pip-install-hook.sh
index 73d3c3cbbff..4eefe22d3f2 100644
--- a/pkgs/development/interpreters/python/hooks/pip-install-hook.sh
+++ b/pkgs/development/interpreters/python/hooks/pip-install-hook.sh
@@ -11,9 +11,7 @@ pipInstallPhase() {
     export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH"
 
     pushd dist || return 1
-    mkdir tmpbuild
-    @pythonInterpreter@ -m pip install ./*.whl --no-index --prefix="$out" --no-cache $pipInstallFlags
-    rm -rf tmpbuild
+    @pythonInterpreter@ -m pip install ./*.whl --no-index --prefix="$out" --no-cache $pipInstallFlags --build tmpbuild
     popd || return 1
 
     runHook postInstall