mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pythonX.Y sitePackages passthru
Let python tell you the correct path for site-packages.
This commit is contained in:
parent
19dd74c59a
commit
7dde165353
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user