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;