recursivePthLoader included via wrapper, not propagated by modules
This commit is contained in:
parent
4329ba3fb1
commit
212b4df91c
@ -1,12 +1,12 @@
|
|||||||
# Create a python that knows about additional python packages via
|
# Create a python that knows about additional python packages via
|
||||||
# PYTHONPATH
|
# PYTHONPATH
|
||||||
|
|
||||||
{stdenv, python, makeWrapper, extraLibs ? []}:
|
{ stdenv, python, makeWrapper, recursivePthLoader, extraLibs ? [] }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "python-${python.version}-wrapper";
|
name = "python-${python.version}-wrapper";
|
||||||
|
|
||||||
propagatedBuildInputs = [python makeWrapper] ++ extraLibs;
|
propagatedBuildInputs = extraLibs ++ [ python makeWrapper recursivePthLoader ];
|
||||||
|
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -53,11 +53,6 @@ python.stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
||||||
|
|
||||||
# recursivePthLoader is responsible for loading pth files
|
|
||||||
propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader ];
|
|
||||||
|
|
||||||
#buildInputStrings = map toString buildInputs;
|
|
||||||
|
|
||||||
pythonPath = [ setuptools ] ++ pythonPath;
|
pythonPath = [ setuptools ] ++ pythonPath;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
@ -2847,6 +2847,7 @@ let
|
|||||||
python27Full = callPackage ../development/interpreters/python/wrapper.nix {
|
python27Full = callPackage ../development/interpreters/python/wrapper.nix {
|
||||||
extraLibs = lib.attrValues python27.modules;
|
extraLibs = lib.attrValues python27.modules;
|
||||||
python = python27;
|
python = python27;
|
||||||
|
inherit (python27Packages) recursivePthLoader;
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonhomeWrapper = callPackage ../development/interpreters/python/pythonhome-wrapper.nix { };
|
pythonhomeWrapper = callPackage ../development/interpreters/python/pythonhome-wrapper.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user