python27FullBuildEnv -> python.buildEnv for all interpreters
This commit is contained in:
parent
67a1a96b49
commit
2d6582d14e
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, pkgconfig, libffi
|
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, pkgconfig, libffi
|
||||||
, sqlite, openssl, ncurses, pythonFull, expat, tcl, tk, x11, libX11
|
, sqlite, openssl, ncurses, pythonFull, expat, tcl, tk, x11, libX11
|
||||||
, makeWrapper }:
|
, makeWrapper, callPackage, self }:
|
||||||
|
|
||||||
assert zlibSupport -> zlib != null;
|
assert zlibSupport -> zlib != null;
|
||||||
|
|
||||||
|
@ -99,6 +99,7 @@ let
|
||||||
inherit zlibSupport libPrefix;
|
inherit zlibSupport libPrefix;
|
||||||
executable = "pypy";
|
executable = "pypy";
|
||||||
isPypy = true;
|
isPypy = true;
|
||||||
|
buildEnv = callPackage ../../python/wrapper.nix { python = self; };
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, includeModules ? false
|
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, includeModules ? false
|
||||||
, sqlite, tcl, tk, x11, openssl, readline, db, ncurses, gdbm}:
|
, sqlite, tcl, tk, x11, openssl, readline, db, ncurses, gdbm, self, callPackage }:
|
||||||
|
|
||||||
assert zlibSupport -> zlib != null;
|
assert zlibSupport -> zlib != null;
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ let
|
||||||
inherit zlibSupport;
|
inherit zlibSupport;
|
||||||
isPy2 = true;
|
isPy2 = true;
|
||||||
isPy26 = true;
|
isPy26 = true;
|
||||||
|
buildEnv = callPackage ../wrapper.nix { python = self; };
|
||||||
libPrefix = "python${majorVersion}";
|
libPrefix = "python${majorVersion}";
|
||||||
executable = libPrefix;
|
executable = libPrefix;
|
||||||
sitePackages = "lib/${libPrefix}/site-packages";
|
sitePackages = "lib/${libPrefix}/site-packages";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, includeModules ? false
|
{ stdenv, fetchurl, zlib ? null, zlibSupport ? true, bzip2, includeModules ? false
|
||||||
, sqlite, tcl, tk, x11, openssl, readline, db, ncurses, gdbm, libX11 }:
|
, sqlite, tcl, tk, x11, openssl, readline, db, ncurses, gdbm, libX11, self, callPackage }:
|
||||||
|
|
||||||
assert zlibSupport -> zlib != null;
|
assert zlibSupport -> zlib != null;
|
||||||
|
|
||||||
|
@ -87,6 +87,7 @@ let
|
||||||
inherit zlibSupport;
|
inherit zlibSupport;
|
||||||
isPy2 = true;
|
isPy2 = true;
|
||||||
isPy27 = true;
|
isPy27 = true;
|
||||||
|
buildEnv = callPackage ../wrapper.nix { python = self; };
|
||||||
libPrefix = "python${majorVersion}";
|
libPrefix = "python${majorVersion}";
|
||||||
executable = libPrefix;
|
executable = libPrefix;
|
||||||
sitePackages = "lib/${libPrefix}/site-packages";
|
sitePackages = "lib/${libPrefix}/site-packages";
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
, sqlite
|
, sqlite
|
||||||
, tcl, tk
|
, tcl, tk
|
||||||
, zlib
|
, zlib
|
||||||
|
, callPackage
|
||||||
|
, self
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert readline != null -> ncurses != null;
|
assert readline != null -> ncurses != null;
|
||||||
|
@ -64,6 +66,7 @@ stdenv.mkDerivation {
|
||||||
zlibSupport = zlib != null;
|
zlibSupport = zlib != null;
|
||||||
sqliteSupport = sqlite != null;
|
sqliteSupport = sqlite != null;
|
||||||
dbSupport = db != null;
|
dbSupport = db != null;
|
||||||
|
buildEnv = callPackage ../wrapper.nix { python = self; };
|
||||||
readlineSupport = readline != null;
|
readlineSupport = readline != null;
|
||||||
opensslSupport = openssl != null;
|
opensslSupport = openssl != null;
|
||||||
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
, sqlite
|
, sqlite
|
||||||
, tcl, tk
|
, tcl, tk
|
||||||
, zlib
|
, zlib
|
||||||
|
, callPackage
|
||||||
|
, self
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert readline != null -> ncurses != null;
|
assert readline != null -> ncurses != null;
|
||||||
|
@ -66,6 +68,7 @@ stdenv.mkDerivation {
|
||||||
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
||||||
libPrefix = "python${majorVersion}";
|
libPrefix = "python${majorVersion}";
|
||||||
executable = "python3.3m";
|
executable = "python3.3m";
|
||||||
|
buildEnv = callPackage ../wrapper.nix { python = self; };
|
||||||
isPy3 = true;
|
isPy3 = true;
|
||||||
isPy33 = true;
|
isPy33 = true;
|
||||||
is_py3k = true; # deprecated
|
is_py3k = true; # deprecated
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
, sqlite
|
, sqlite
|
||||||
, tcl, tk
|
, tcl, tk
|
||||||
, zlib
|
, zlib
|
||||||
|
, callPackage
|
||||||
|
, self
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert readline != null -> ncurses != null;
|
assert readline != null -> ncurses != null;
|
||||||
|
@ -67,6 +69,7 @@ stdenv.mkDerivation {
|
||||||
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
tkSupport = (tk != null) && (tcl != null) && (libX11 != null) && (xproto != null);
|
||||||
libPrefix = "python${majorVersion}";
|
libPrefix = "python${majorVersion}";
|
||||||
executable = "python3.4m";
|
executable = "python3.4m";
|
||||||
|
buildEnv = callPackage ../wrapper.nix { python = self; };
|
||||||
isPy3 = true;
|
isPy3 = true;
|
||||||
isPy34 = true;
|
isPy34 = true;
|
||||||
is_py3k = true; # deprecated
|
is_py3k = true; # deprecated
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
{ stdenv, python, buildEnv, makeWrapper, recursivePthLoader, extraLibs ? [], postBuild ? ""
|
{ stdenv, python, buildEnv, makeWrapper
|
||||||
|
, extraLibs ? []
|
||||||
|
, postBuild ? ""
|
||||||
, ignoreCollisions ? false }:
|
, ignoreCollisions ? false }:
|
||||||
|
|
||||||
# Create a python executable that knows about additional packages.
|
# Create a python executable that knows about additional packages.
|
||||||
|
let
|
||||||
|
recursivePthLoader = import ../../python-modules/recursive-pth-loader/default.nix { stdenv = stdenv; python = python; };
|
||||||
|
in
|
||||||
(buildEnv {
|
(buildEnv {
|
||||||
name = "python-${python.version}-env";
|
name = "${python.name}-env";
|
||||||
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ [ python recursivePthLoader ];
|
paths = stdenv.lib.filter (x : x ? pythonPath) (stdenv.lib.closePropagation extraLibs) ++ [ python recursivePthLoader ];
|
||||||
|
|
||||||
inherit ignoreCollisions;
|
inherit ignoreCollisions;
|
||||||
|
|
|
@ -3950,32 +3950,36 @@ let
|
||||||
python2Packages = python27Packages;
|
python2Packages = python27Packages;
|
||||||
python3Packages = python34Packages;
|
python3Packages = python34Packages;
|
||||||
|
|
||||||
python26 = callPackage ../development/interpreters/python/2.6 { db = db47; };
|
python26 = callPackage ../development/interpreters/python/2.6 {
|
||||||
python27 = callPackage ../development/interpreters/python/2.7 { };
|
db = db47;
|
||||||
python32 = callPackage ../development/interpreters/python/3.2 { };
|
self = python26;
|
||||||
python33 = callPackage ../development/interpreters/python/3.3 { };
|
};
|
||||||
python34 = hiPrio (callPackage ../development/interpreters/python/3.4 { });
|
python27 = callPackage ../development/interpreters/python/2.7 {
|
||||||
|
self = python27;
|
||||||
pypy = callPackage ../development/interpreters/pypy/2.4 { };
|
};
|
||||||
|
python32 = callPackage ../development/interpreters/python/3.2 {
|
||||||
|
self = python32;
|
||||||
|
};
|
||||||
|
python33 = callPackage ../development/interpreters/python/3.3 {
|
||||||
|
self = python33;
|
||||||
|
};
|
||||||
|
python34 = hiPrio (callPackage ../development/interpreters/python/3.4 {
|
||||||
|
self = python34;
|
||||||
|
});
|
||||||
|
pypy = callPackage ../development/interpreters/pypy/2.4 {
|
||||||
|
self = pypy;
|
||||||
|
};
|
||||||
|
|
||||||
pythonFull = python2Full;
|
pythonFull = python2Full;
|
||||||
python2Full = python27Full;
|
python2Full = python27Full;
|
||||||
python26Full = python26.override {
|
python26Full = python26.override {
|
||||||
includeModules = true;
|
includeModules = true;
|
||||||
|
self = python26Full;
|
||||||
};
|
};
|
||||||
python27Full = python27.override {
|
python27Full = python27.override {
|
||||||
includeModules = true;
|
includeModules = true;
|
||||||
|
self = python27Full;
|
||||||
};
|
};
|
||||||
python26FullBuildEnv = callPackage ../development/interpreters/python/wrapper.nix {
|
|
||||||
python = python26Full;
|
|
||||||
inherit (python26Packages) recursivePthLoader;
|
|
||||||
};
|
|
||||||
python27FullBuildEnv = callPackage ../development/interpreters/python/wrapper.nix {
|
|
||||||
python = python27Full;
|
|
||||||
inherit (python27Packages) recursivePthLoader;
|
|
||||||
};
|
|
||||||
pythonFullBuildEnv = python2FullBuildEnv;
|
|
||||||
python2FullBuildEnv = python27FullBuildEnv;
|
|
||||||
|
|
||||||
python2nix = callPackage ../tools/package-management/python2nix { };
|
python2nix = callPackage ../tools/package-management/python2nix { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue