* Move python/2.7/modules.nix into python/2.7/default.nix. Also
remove the pythonModules attribute. The built-in modules are now accessible as (e.g.) "python.modules.ssl" or "pythonPackages.ssl". svn path=/nixpkgs/branches/modular-python/; revision=26559
This commit is contained in:
@@ -992,10 +992,8 @@ let
|
||||
|
||||
obexftp = callPackage ../tools/bluetooth/obexftp { };
|
||||
|
||||
offlineimap = import ../tools/networking/offlineimap {
|
||||
inherit fetchurl;
|
||||
buildPythonPackage = buildPython27Package;
|
||||
ssl = pythonModules.ssl;
|
||||
offlineimap = callPackage ../tools/networking/offlineimap {
|
||||
ssl = pythonPackages.ssl;
|
||||
};
|
||||
|
||||
opendbx = callPackage ../development/libraries/opendbx { };
|
||||
@@ -2267,7 +2265,6 @@ let
|
||||
polyml = callPackage ../development/compilers/polyml { };
|
||||
|
||||
python = python27;
|
||||
pythonModules = python27Modules;
|
||||
|
||||
python26 = if getConfig ["python" "full"] false then python26Full else python26Base;
|
||||
pythonFull = python26Full;
|
||||
@@ -2295,10 +2292,6 @@ let
|
||||
|
||||
python27 = callPackage ../development/interpreters/python/2.7 { };
|
||||
|
||||
python27Modules = callPackage ../development/interpreters/python/2.7/modules.nix {
|
||||
python = python27;
|
||||
};
|
||||
|
||||
python3 = callPackage ../development/interpreters/python/3.1 {
|
||||
arch = if stdenv.isDarwin then pkgs.darwinArchUtility else null;
|
||||
sw_vers = if stdenv.isDarwin then pkgs.darwinSwVersUtility else null;
|
||||
@@ -4302,9 +4295,7 @@ let
|
||||
|
||||
### DEVELOPMENT / PYTHON MODULES
|
||||
|
||||
buildPythonPackage = import ../development/python-modules/generic {
|
||||
inherit python setuptools makeWrapper lib;
|
||||
};
|
||||
buildPythonPackage = buildPython27Package;
|
||||
|
||||
buildPython26Package = import ../development/python-modules/generic {
|
||||
inherit makeWrapper lib;
|
||||
@@ -4318,7 +4309,7 @@ let
|
||||
setuptools = setuptools.override { python = python27; doCheck = false; };
|
||||
};
|
||||
|
||||
pythonPackages = python26Packages;
|
||||
pythonPackages = python27Packages;
|
||||
|
||||
python26Packages = recurseIntoAttrs (import ./python-packages.nix {
|
||||
inherit pkgs;
|
||||
@@ -6283,7 +6274,7 @@ let
|
||||
|
||||
mercurial = callPackage ../applications/version-management/mercurial {
|
||||
guiSupport = getConfig ["mercurial" "guiSupport"] false; # for hgk (gitk gui for hg)
|
||||
inherit (python27Modules) ssl;
|
||||
inherit (pythonPackages) ssl;
|
||||
};
|
||||
|
||||
merkaartor = callPackage ../applications/misc/merkaartor {
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
{ pkgs, python, buildPythonPackage }:
|
||||
|
||||
rec {
|
||||
python.modules // rec {
|
||||
|
||||
inherit (pkgs) fetchurl fetchsvn stdenv;
|
||||
|
||||
inherit (python.modules) ssl;
|
||||
|
||||
|
||||
argparse = buildPythonPackage (rec {
|
||||
name = "argparse-1.1";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user