summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-08-12 14:01:51 +0000
committerPeter Simons <simons@cryp.to>2010-08-12 14:01:51 +0000
commit04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb (patch)
tree37a0cf6fb46e39d88bcb9761ee0305af6dcc63a0
parenta30807b8fd33e1f1b7a3504833219043b1af07c9 (diff)
downloadnixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar.gz
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar.bz2
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar.lz
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar.xz
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.tar.zst
nixpkgs-04ee1d78ad8ec2ec2454396e1dcebd5bafee01eb.zip
pkgs/top-level/all-packages.nix: obsoleted setuptools_python26 and setuptools_python27
Instead of having different setuptools expressions, buildPythonPackage
uses override to choose the desired python version. Now, technically,
buildPythonPackage shouldn't exist in multiple versions either. Maybe
the whole thing should be moved into python packages?

svn path=/nixpkgs/trunk/; revision=23151
-rw-r--r--pkgs/top-level/all-packages.nix39
1 files changed, 13 insertions, 26 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ddcd1a7358d..2a806f0f2c1 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -3934,24 +3934,21 @@ let
 
   ### DEVELOPMENT / PYTHON MODULES
 
-  buildPythonPackage =
-    import ../development/python-modules/generic {
-      inherit python setuptools makeWrapper lib;
-    };
+  buildPythonPackage = import ../development/python-modules/generic {
+    inherit python setuptools makeWrapper lib;
+  };
 
-  buildPython26Package =
-    import ../development/python-modules/generic {
-      inherit makeWrapper lib;
-      python = python26;
-      setuptools = setuptools_python26;
-    };
+  buildPython26Package = import ../development/python-modules/generic {
+    inherit makeWrapper lib;
+    python = python26;
+    setuptools = setuptools.override { python = python26; };
+  };
 
-  buildPython27Package =
-    import ../development/python-modules/generic {
-      inherit makeWrapper lib;
-      python = python26;
-      setuptools = setuptools_python27;
-    };
+  buildPython27Package = import ../development/python-modules/generic {
+    inherit makeWrapper lib;
+    python = python27;
+    setuptools = setuptools.override { python = python27; };
+  };
 
   pythonPackages = python26Packages;
 
@@ -4022,16 +4019,6 @@ let
     inherit python makeWrapper;
   };
 
-  setuptools_python26 = builderDefsPackage (import ../development/python-modules/setuptools) {
-    inherit makeWrapper;
-    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 {