mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
pythonPackages.pip: make package reproducible
This fixes #201146 by removing the vendored Windows PE binaries.
(cherry picked from commit b87d7fa3f9)
This commit is contained in:
committed by
github-actions[bot]
parent
24962fccc4
commit
9193d840eb
@@ -27,6 +27,12 @@ buildPythonPackage rec {
|
||||
|
||||
nativeBuildInputs = [ bootstrapped-pip ];
|
||||
|
||||
postPatch = ''
|
||||
# Remove vendored Windows PE binaries
|
||||
# Note: These are unused but make the package unreproducible.
|
||||
find -type f -name '*.exe' -delete
|
||||
'';
|
||||
|
||||
# pip detects that we already have bootstrapped_pip "installed", so we need
|
||||
# to force it a little.
|
||||
pipInstallFlags = [ "--ignore-installed" ];
|
||||
|
||||
Reference in New Issue
Block a user