PYTHONPATH in preConfigure instead of configurePhase

enables a normal configurePhase also for python packages (e.g. libxml2
python bindings)

authored by: chaoflow, goibhniu

svn path=/nixpkgs/branches/stdenv-updates/; revision=32595
This commit is contained in:
Florian Friesdorf 2012-02-26 17:23:47 +00:00
parent eb35e3bd13
commit 6d7dfd1415

View file

@ -73,7 +73,7 @@ python.stdenv.mkDerivation (attrs // {
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
configurePhase = ''
preConfigure = ''
# do not allow distutils to make downloads, whatever install command is used
export PYTHONPATH="${setuptools}/lib/${python.libPrefix}:$PYTHONPATH"
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"