From a0aae85012ec4807d46495f44246ea092db2570e Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 13 Aug 2017 21:30:42 +0200 Subject: Python: move some attributes together with the rest of the Python-related attributes. --- pkgs/top-level/all-packages.nix | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'pkgs') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6ae62db18db..d50e812eaf00 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6336,6 +6336,7 @@ with pkgs; python = python2; python2 = python27; python3 = python36; + pypy = pypy27; # Python interpreter that is build with all modules, including tkinter. # These are for compatibility and should not be used inside Nixpkgs. @@ -6369,17 +6370,22 @@ with pkgs; self = python36; }; - # Should eventually be moved inside Python interpreters. - python-setup-hook = callPackage ../development/interpreters/python/setup-hook.nix { }; - - pypy = pypy27; - pypy27 = callPackage ../development/interpreters/python/pypy/2.7 { self = pypy27; python = python27.override{x11Support=true;}; db = db.override { dbmSupport = true; }; }; + # Python package sets. + python27Packages = lib.hiPrioSet (recurseIntoAttrs python27.pkgs); + python34Packages = python34.pkgs; + python35Packages = python35.pkgs; + python36Packages = recurseIntoAttrs python36.pkgs; + pypyPackages = pypy.pkgs; + + # Should eventually be moved inside Python interpreters. + python-setup-hook = callPackage ../development/interpreters/python/setup-hook.nix { }; + python2nix = callPackage ../tools/package-management/python2nix { }; pythonDocs = recurseIntoAttrs (callPackage ../development/interpreters/python/cpython/docs {}); @@ -10914,20 +10920,6 @@ with pkgs; sqitchModule = perlPackages.AppSqitch; }; - ### DEVELOPMENT / PYTHON MODULES - - # Python package sets. - - python27Packages = lib.hiPrioSet (recurseIntoAttrs python27.pkgs); - - python34Packages = python34.pkgs; - - python35Packages = python35.pkgs; - - python36Packages = recurseIntoAttrs python36.pkgs; - - pypyPackages = pypy.pkgs; - ### DEVELOPMENT / R MODULES R = callPackage ../applications/science/math/R { -- cgit 1.4.1