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:
parent
39d1bc755e
commit
ab423e6367
@ -57,12 +57,13 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
|
|||||||
name = namePrefix + name;
|
name = namePrefix + name;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python wrapPython setuptools
|
wrapPython setuptools
|
||||||
(distutils-cfg.override { extraCfg = distutilsExtraCfg; })
|
(distutils-cfg.override { extraCfg = distutilsExtraCfg; })
|
||||||
] ++ buildInputs ++ pythonPath
|
] ++ buildInputs ++ pythonPath
|
||||||
++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip);
|
++ (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;
|
pythonPath = [ setuptools ] ++ pythonPath;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user