3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages: distutils-cfg, allow to override config

This commit is contained in:
Jaka Hudoklin 2014-03-12 21:52:43 +01:00
parent 42d7923752
commit f7cdd1611b

View file

@ -1,10 +1,11 @@
# global distutils configuration, see http://docs.python.org/2/install/index.html#distutils-configuration-files
{ stdenv, python, writeText, extraCfg ? "" }:
{ stdenv, python, writeText, extraCfg ? "", overrideCfg ? "" }:
let
distutilsCfg = writeText "distutils.cfg" ''
distutilsCfg = writeText "distutils.cfg" (
if overrideCfg != "" then overrideCfg else ''
[easy_install]
# don't allow network connections during build to ensure purity
@ -14,7 +15,7 @@ let
zip_ok = 0
${extraCfg}
'';
'');
in stdenv.mkDerivation {
name = "${python.libPrefix}-distutils.cfg";