3
0
Fork 0
forked from mirrors/nixpkgs

buildPythonPackage: add python to propagatedBuildInputs

Doing:

$ nix-shell -p pythonPackage.pyramid

now also sets $PYTHONPATH. Previously you'd have to do:

$ nix-shell -p pythonPackage.pyramid python
This commit is contained in:
Domen Kožar 2014-11-13 21:02:45 +01:00
parent 39d1bc755e
commit ab423e6367

View file

@ -57,12 +57,13 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
name = namePrefix + name;
buildInputs = [
python wrapPython setuptools
wrapPython setuptools
(distutils-cfg.override { extraCfg = distutilsExtraCfg; })
] ++ buildInputs ++ pythonPath
++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip);
propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader ];
# propagate python to active setup-hook in nix-shell
propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader python ];
pythonPath = [ setuptools ] ++ pythonPath;