always include setuptools in buildInputs

When cross compiling setuptools isn't available in the build environment
but needed for eg. python setup.py egg_info.
This commit is contained in:
Daiderd Jordan 2020-11-24 19:26:50 +01:00 committed by adisbladis
parent c72860f2bd
commit 4beb2b2941
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -27,6 +27,7 @@ pythonPackages.callPackage
, ... , ...
}@args: }@args:
let let
inherit (pkgs) stdenv;
inherit (poetryLib) isCompatible getManyLinuxDeps fetchFromPypi moduleName; inherit (poetryLib) isCompatible getManyLinuxDeps fetchFromPypi moduleName;
inherit (import ./pep425.nix { inherit (import ./pep425.nix {
@ -113,9 +114,10 @@ pythonPackages.callPackage
buildInputs = ( buildInputs = (
baseBuildInputs baseBuildInputs
++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) pythonPackages.setuptools
++ lib.optional (!isSource) (getManyLinuxDeps fileInfo.name).pkg ++ lib.optional (!isSource) (getManyLinuxDeps fileInfo.name).pkg
++ lib.optional isLocal buildSystemPkgs ++ lib.optional isLocal buildSystemPkgs
++ lib.optional (!__isBootstrap) [ pythonPackages.poetry ] ++ lib.optional (!__isBootstrap) pythonPackages.poetry
); );
propagatedBuildInputs = propagatedBuildInputs =