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

@@ -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;