Merge pull request #1935 from offlinehacker/pkgs/pythonPackages/distutils-cfg/override_config

pythonPackages: distutils-cfg, allow to override config
This commit is contained in:
Domen Kožar 2014-03-13 14:03:32 +01:00
commit afc1f7ca15

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";