pythonX.Y sitePackages passthru

Let python tell you the correct path for site-packages.
This commit is contained in:
Florian Friesdorf 2014-07-07 18:39:57 +02:00
parent 19dd74c59a
commit 7dde165353
5 changed files with 12 additions and 7 deletions

View File

@ -71,10 +71,11 @@ let
ln -s $out/share/man/man1/{python2.6.1,python.1}
'';
passthru = {
passthru = rec {
inherit zlibSupport;
libPrefix = "python${majorVersion}";
executable = "python2.6";
executable = libPrefix;
sitePackages = "lib/${libPrefix}/site-packages";
};
enableParallelBuilding = true;

View File

@ -85,10 +85,11 @@ let
paxmark E $out/bin/python${majorVersion}
'';
passthru = {
passthru = rec {
inherit zlibSupport;
libPrefix = "python${majorVersion}";
executable = "python2.7";
executable = libPrefix;
sitePackages = "lib/${libPrefix}/site-packages";
};
enableParallelBuilding = true;

View File

@ -60,7 +60,7 @@ stdenv.mkDerivation {
ln -s "$out/include/python${majorVersion}m" "$out/include/python${majorVersion}"
'';
passthru = {
passthru = rec {
zlibSupport = zlib != null;
sqliteSupport = sqlite != null;
dbSupport = db != null;
@ -70,6 +70,7 @@ stdenv.mkDerivation {
libPrefix = "python${majorVersion}";
executable = "python3.2m";
is_py3k = true;
sitePackages = "lib/${libPrefix}/site-packages";
};
enableParallelBuilding = true;

View File

@ -57,7 +57,7 @@ stdenv.mkDerivation {
paxmark E $out/bin/python${majorVersion}
'';
passthru = {
passthru = rec {
zlibSupport = zlib != null;
sqliteSupport = sqlite != null;
dbSupport = db != null;
@ -67,6 +67,7 @@ stdenv.mkDerivation {
libPrefix = "python${majorVersion}";
executable = "python3.3m";
is_py3k = true;
sitePackages = "lib/${libPrefix}/site-packages";
};
enableParallelBuilding = true;

View File

@ -58,7 +58,7 @@ stdenv.mkDerivation {
paxmark E $out/bin/python${majorVersion}
'';
passthru = {
passthru = rec {
zlibSupport = zlib != null;
sqliteSupport = sqlite != null;
dbSupport = db != null;
@ -68,6 +68,7 @@ stdenv.mkDerivation {
libPrefix = "python${majorVersion}";
executable = "python3.4m";
is_py3k = true;
sitePackages = "lib/${libPrefix}/site-packages";
};
enableParallelBuilding = true;