Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
897 B · 42 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243# global distutils configuration, see http://docs.python.org/2/install/index.html#distutils-configuration-files
{ stdenv, python, writeText, extraCfg ? "", overrideCfg ? "",}:
let distutilsCfg = writeText "distutils.cfg" ( if overrideCfg != "" then overrideCfg else '' [easy_install]
# don't allow network connections during build to ensure purity allow-hosts = None
# make sure we always unzip installed packages otherwise setup hooks won't work zip_ok = 0
${extraCfg} '' );instdenv.mkDerivation { name = "${python.libPrefix}-distutils.cfg";
buildInputs = [ python ];
dontUnpack = true;
installPhase = '' dest="$out/${python.sitePackages}/distutils" mkdir -p $dest ln -s ${python}/lib/${python.libPrefix}/distutils/* $dest ln -s ${distutilsCfg} $dest/distutils.cfg '';}