Merge branch 'python/docs'

This commit is contained in:
Domen Kožar
2014-11-13 21:32:01 +01:00
9 changed files with 423 additions and 40 deletions

View File

@@ -95,11 +95,12 @@ let
--set LIBRARY_PATH "${LIBRARY_PATH}"
'';
passthru = {
passthru = rec {
inherit zlibSupport libPrefix;
executable = "pypy";
isPypy = true;
buildEnv = callPackage ../../python/wrapper.nix { python = self; };
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

View File

@@ -93,6 +93,7 @@ let
libPrefix = "python${majorVersion}";
executable = libPrefix;
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

View File

@@ -100,6 +100,7 @@ let
libPrefix = "python${majorVersion}";
executable = libPrefix;
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

View File

@@ -80,6 +80,7 @@ stdenv.mkDerivation {
isPy32 = true;
is_py3k = true; # deprecated
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

View File

@@ -81,6 +81,7 @@ stdenv.mkDerivation {
isPy33 = true;
is_py3k = true; # deprecated
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

View File

@@ -83,6 +83,7 @@ stdenv.mkDerivation {
isPy34 = true;
is_py3k = true; # deprecated
sitePackages = "lib/${libPrefix}/site-packages";
interpreter = "${self}/bin/${executable}";
};
enableParallelBuilding = true;

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;