mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue