recursivePthLoader included via wrapper, not propagated by modules

This commit is contained in:
Florian Friesdorf 2013-01-11 09:53:28 +01:00
parent 4329ba3fb1
commit 212b4df91c
3 changed files with 3 additions and 7 deletions

View File

@ -1,12 +1,12 @@
# Create a python that knows about additional python packages via
# PYTHONPATH
{stdenv, python, makeWrapper, extraLibs ? []}:
{ stdenv, python, makeWrapper, recursivePthLoader, extraLibs ? [] }:
stdenv.mkDerivation {
name = "python-${python.version}-wrapper";
propagatedBuildInputs = [python makeWrapper] ++ extraLibs;
propagatedBuildInputs = extraLibs ++ [ python makeWrapper recursivePthLoader ];
unpackPhase = "true";
installPhase = ''

View File

@ -53,11 +53,6 @@ python.stdenv.mkDerivation (attrs // {
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
# recursivePthLoader is responsible for loading pth files
propagatedBuildInputs = propagatedBuildInputs ++ [ recursivePthLoader ];
#buildInputStrings = map toString buildInputs;
pythonPath = [ setuptools ] ++ pythonPath;
preConfigure = ''

View File

@ -2847,6 +2847,7 @@ let
python27Full = callPackage ../development/interpreters/python/wrapper.nix {
extraLibs = lib.attrValues python27.modules;
python = python27;
inherit (python27Packages) recursivePthLoader;
};
pythonhomeWrapper = callPackage ../development/interpreters/python/pythonhome-wrapper.nix { };