about summary refs log tree commit diff
path: root/pkgs/top-level/all-packages.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-08-11 15:49:03 +0000
committerPeter Simons <simons@cryp.to>2010-08-11 15:49:03 +0000
commit2b37d181a5507cc41ab3ffb91599132b2e2cb3b0 (patch)
treed7c01b261d52f2533516bd033ecf5c005c84c717 /pkgs/top-level/all-packages.nix
parente1926e376483018e929e30935ac983a35b99f46d (diff)
downloadnixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar.gz
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar.bz2
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar.lz
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar.xz
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.tar.zst
nixlib-2b37d181a5507cc41ab3ffb91599132b2e2cb3b0.zip
Added Python version 2.7.
svn path=/nixpkgs/trunk/; revision=23117
Diffstat (limited to 'pkgs/top-level/all-packages.nix')
-rw-r--r--pkgs/top-level/all-packages.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 122951b2dd2d..063e49e9401b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2075,6 +2075,7 @@ let
   python = if getConfig ["python" "full"] false then pythonFull else pythonBase;
   python25 = if getConfig ["python" "full"] false then python25Full else python25Base;
   python26 = if getConfig ["python" "full"] false then python26Full else python26Base;
+  python27 = if getConfig ["python" "full"] false then python27Full else python27Base;
   pythonBase = python26Base;
   pythonFull = python26Full;
 
@@ -2116,6 +2117,25 @@ let
     ncurses = if getConfig ["python" "curses"] true then ncurses else null;
   });
 
+  python27Base = makeOverridable (import ../development/interpreters/python/2.7) {
+    inherit fetchurl stdenv zlib bzip2 gdbm;
+    arch = if stdenv.isDarwin then darwinArchUtility else null;
+    sw_vers = if stdenv.isDarwin then darwinSwVersUtility else null;
+  };
+
+  python27Full = lowPrio (python27Base.override {
+    # FIXME: We lack ncurses support, needed, e.g., for `gpsd'.
+    db4 = if getConfig ["python" "db4Support"] true then db4 else null;
+    sqlite = if getConfig ["python" "sqliteSupport"] true then sqlite else null;
+    readline = if getConfig ["python" "readlineSupport"] true then readline else null;
+    openssl = if getConfig ["python" "opensslSupport"] true then openssl else null;
+    tk = if getConfig ["python" "tkSupport"] true then tk else null;
+    tcl = if getConfig ["python" "tkSupport"] true then tcl else null;
+    libX11 = if getConfig ["python" "tkSupport"] true then xlibs.libX11 else null;
+    xproto = if getConfig ["python" "tkSupport"] true then xlibs.xproto else null;
+    ncurses = if getConfig ["python" "curses"] true then ncurses else null;
+  });
+
   python31Base = lowPrio (makeOverridable (import ../development/interpreters/python/3.1) {
     inherit fetchurl stdenv zlib bzip2 gdbm;
     arch = if stdenv.isDarwin then darwinArchUtility else null;
@@ -3934,6 +3954,13 @@ let
       setuptools = setuptools_python26;
     };
 
+  buildPython27Package =
+    import ../development/python-modules/generic {
+      inherit makeWrapper lib;
+      python = python26;
+      setuptools = setuptools_python27;
+    };
+
   pythonPackages = python26Packages;
 
   python25Packages = recurseIntoAttrs (import ./python-packages.nix {
@@ -3946,6 +3973,12 @@ let
     buildPythonPackage = buildPython26Package;
   });
 
+  python27Packages = recurseIntoAttrs (import ./python-packages.nix {
+    inherit pkgs;
+    python = python27;
+    buildPythonPackage = buildPython27Package;
+  });
+
   foursuite = callPackage ../development/python-modules/4suite { };
 
   bsddb3 = callPackage ../development/python-modules/bsddb3 { };
@@ -4004,6 +4037,11 @@ let
     python = python26;
   };
 
+  setuptools_python27 = builderDefsPackage (import ../development/python-modules/setuptools) {
+    inherit makeWrapper;
+    python = python27;
+  };
+
   wxPython = wxPython26;
 
   wxPython26 = callPackage ../development/python-modules/wxPython/2.6.nix {