Adding possibility to have rich Python installation for development but use only the base one for, say, OpenOffice (and be able to use buildfarm). Codeville and Bazaar use the rich variant - they do have some use for it..

svn path=/nixpkgs/trunk/; revision=13075
This commit is contained in:
Michael Raskin 2008-10-15 20:01:39 +00:00
parent b436bcf285
commit 0e7e7da6a1

View file

@ -2002,17 +2002,20 @@ let
libXt;
};
python = python25;
python = if getConfig ["python" "full"] false then pythonFull else pythonBase;
python25 = if getConfig ["python" "full"] false then python25Full else python25Base;
pythonBase = python25Base;
pythonFull = python25Full;
python24 = import ../development/interpreters/python/2.4 {
inherit fetchurl stdenv zlib bzip2;
};
python25base = composedArgsAndFun (import ../development/interpreters/python/2.5) {
python25Base = composedArgsAndFun (import ../development/interpreters/python/2.5) {
inherit fetchurl stdenv zlib bzip2 gdbm;
};
python25 = python25base.meta.function {
python25Full = python25Base.meta.function {
db4 = if getConfig ["python" "db4Support"] false then db4 else null;
sqlite = if getConfig ["python" "sqliteSupport"] false then sqlite else null;
readline = if getConfig ["python" "readlineSupport"] false then readline else null;
@ -5909,7 +5912,8 @@ let
};
bazaar = import ../applications/version-management/bazaar {
inherit fetchurl stdenv makeWrapper python;
inherit fetchurl stdenv makeWrapper;
python = pythonFull;
};
bazaarTools = builderDefsPackage (import ../applications/version-management/bazaar/tools.nix) {
@ -6092,7 +6096,8 @@ let
};
codeville = builderDefsPackage (selectVersion ../applications/version-management/codeville "0.8.0") {
inherit makeWrapper python;
inherit makeWrapper;
python = pythonFull;
};
cua = import ../applications/editors/emacs-modes/cua {