forked from mirrors/nixpkgs
Python 3.6: separate output for tkinter
This commit is contained in:
parent
0a08fcd858
commit
a2720a25b9
|
@ -29,6 +29,7 @@ let
|
||||||
pythonVersion = majorVersion;
|
pythonVersion = majorVersion;
|
||||||
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
|
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
|
||||||
libPrefix = "python${majorVersion}";
|
libPrefix = "python${majorVersion}";
|
||||||
|
sitePackages = "lib/${libPrefix}/site-packages";
|
||||||
|
|
||||||
buildInputs = filter (p: p != null) [
|
buildInputs = filter (p: p != null) [
|
||||||
glibc
|
glibc
|
||||||
|
@ -103,8 +104,16 @@ stdenv.mkDerivation {
|
||||||
echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
|
echo "manylinux1_compatible=False" >> $out/lib/${libPrefix}/_manylinux.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
# tkinter goes in a separate output
|
||||||
|
mkdir -p $tkinter/${sitePackages}
|
||||||
|
mv $out/lib/${libPrefix}/lib-dynload/_tkinter* $tkinter/${sitePackages}/
|
||||||
|
'';
|
||||||
|
|
||||||
|
outputs = ["out" "tkinter"];
|
||||||
|
|
||||||
passthru = rec {
|
passthru = rec {
|
||||||
inherit libPrefix;
|
inherit libPrefix sitePackages;
|
||||||
zlibSupport = zlib != null;
|
zlibSupport = zlib != null;
|
||||||
sqliteSupport = sqlite != null;
|
sqliteSupport = sqlite != null;
|
||||||
dbSupport = db != null;
|
dbSupport = db != null;
|
||||||
|
@ -117,7 +126,6 @@ stdenv.mkDerivation {
|
||||||
isPy3 = true;
|
isPy3 = true;
|
||||||
isPy35 = true;
|
isPy35 = true;
|
||||||
is_py3k = true; # deprecated
|
is_py3k = true; # deprecated
|
||||||
sitePackages = "lib/${libPrefix}/site-packages";
|
|
||||||
interpreter = "${self}/bin/${executable}";
|
interpreter = "${self}/bin/${executable}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue