Skip to content

Commit

Permalink
Revert "python.pkgs.buildPythonPackage: use distutils-cfg to block do…
Browse files Browse the repository at this point in the history
…wnloads, fixes #25428"

This reverts commit b73e3bf.

See #29103

(cherry picked from commit c3a0c3c)
  • Loading branch information
FRidh committed Sep 8, 2017
1 parent 399b610 commit 85a1d86
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -6,8 +6,6 @@
, setuptools
, unzip
, ensureNewerSourcesHook
# Prevent impurities by blocking setuptools/easy-install from downloading sdists
, distutils-cfg
}:

{ name
Expand Down Expand Up @@ -62,7 +60,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "checkInputs"

inherit pythonPath;

buildInputs = [ distutils-cfg wrapPython ] ++ buildInputs ++ pythonPath
buildInputs = [ wrapPython ] ++ buildInputs ++ pythonPath
++ [ (ensureNewerSourcesHook { year = "1980"; }) ]
++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip)
++ lib.optionals doCheck checkInputs;
Expand Down
1 change: 0 additions & 1 deletion pkgs/top-level/python-packages.nix
Expand Up @@ -34,7 +34,6 @@ let
bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { };

mkPythonDerivation = makeOverridable( callPackage ../development/interpreters/python/mk-python-derivation.nix {
distutils-cfg = callPackage ../development/python-modules/distutils-cfg { };
});

# Derivations built with `buildPythonPackage` can already be overriden with `override`, `overrideAttrs`, and `overrideDerivation`.
Expand Down

0 comments on commit 85a1d86

Please sign in to comment.