Skip to content

Commit

Permalink
python and pythonPackage attr naming - cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Jul 10, 2014
1 parent 7dde165 commit 168bfea
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3562,17 +3562,26 @@ let
llvm = llvm_33 ;
};

python = python2;
python2 = python27;
python3 = python34;

# pythonPackages further below, but assigned here because they need to be in sync
pythonPackages = python2Packages;
python2Packages = python27Packages;
python3Packages = python34Packages;

pythonFull = python2Full;
python2Full = python27Full;

python26 = callPackage ../development/interpreters/python/2.6 { db = db47; };
python27 = callPackage ../development/interpreters/python/2.7 { };
python32 = callPackage ../development/interpreters/python/3.2 { };
python33 = callPackage ../development/interpreters/python/3.3 { };
python34 = hiPrio (callPackage ../development/interpreters/python/3.4 { });
python = python27;
python3 = python3Packages.python;

pypy = callPackage ../development/interpreters/pypy/2.3 { };

pythonFull = python27Full;
python26Full = callPackage ../development/interpreters/python/wrapper.nix {
extraLibs = [];
postBuild = "";
Expand Down Expand Up @@ -6527,8 +6536,6 @@ let
# python function with default python interpreter
buildPythonPackage = pythonPackages.buildPythonPackage;

pythonPackages = python27Packages;

# `nix-env -i python-nose` installs for 2.7, the default python.
# Therefore we do not recurse into attributes here, in contrast to
# python27Packages. `nix-env -iA python26Packages.nose` works
Expand All @@ -6538,7 +6545,15 @@ let
python = python26;
};

python3Packages = python34Packages;
python27Packages = lib.hiPrioSet (recurseIntoAttrs (import ./python-packages.nix {
inherit pkgs;
python = python27;
}));

python32Packages = import ./python-packages.nix {
inherit pkgs;
python = python32;
};

python33Packages = recurseIntoAttrs (import ./python-packages.nix {
inherit pkgs;
Expand All @@ -6550,16 +6565,6 @@ let
python = python34;
});

python32Packages = import ./python-packages.nix {
inherit pkgs;
python = python32;
};

python27Packages = lib.hiPrioSet (recurseIntoAttrs (import ./python-packages.nix {
inherit pkgs;
python = python27;
}));

pypyPackages = recurseIntoAttrs (import ./python-packages.nix {
inherit pkgs;
python = pypy;
Expand Down

0 comments on commit 168bfea

Please sign in to comment.