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:
parent
eb35e3bd13
commit
6d7dfd1415
|
@ -73,7 +73,7 @@ python.stdenv.mkDerivation (attrs // {
|
||||||
|
|
||||||
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
||||||
|
|
||||||
configurePhase = ''
|
preConfigure = ''
|
||||||
# do not allow distutils to make downloads, whatever install command is used
|
# do not allow distutils to make downloads, whatever install command is used
|
||||||
export PYTHONPATH="${setuptools}/lib/${python.libPrefix}:$PYTHONPATH"
|
export PYTHONPATH="${setuptools}/lib/${python.libPrefix}:$PYTHONPATH"
|
||||||
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
||||||
|
|
Loading…
Reference in a new issue