offlineDistutils in PYTHONPATH in configurePhase instead of builder.sh
Conflicts: pkgs/development/python-modules/generic/default.nix
This commit is contained in:
parent
ccb5d0fc19
commit
74d963c69a
@ -1,6 +0,0 @@
|
|||||||
source $stdenv/setup
|
|
||||||
|
|
||||||
# do not allow distutils to make downloads, whatever install command is used
|
|
||||||
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
|
||||||
|
|
||||||
genericBuild
|
|
@ -32,6 +32,7 @@
|
|||||||
python setup.py test
|
python setup.py test
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
''
|
''
|
||||||
|
, configurePhase ? "true"
|
||||||
|
|
||||||
, postInstall ? ""
|
, postInstall ? ""
|
||||||
|
|
||||||
@ -45,7 +46,12 @@ python.stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
buildInputs = [ python wrapPython setuptools ] ++ buildInputs ++ pythonPath;
|
||||||
|
|
||||||
builder = ./builder.sh;
|
buildInputStrings = map toString buildInputs;
|
||||||
|
|
||||||
|
configurePhase = ''
|
||||||
|
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
||||||
|
${configurePhase}
|
||||||
|
'';
|
||||||
|
|
||||||
pythonPath = [ setuptools] ++ pythonPath;
|
pythonPath = [ setuptools] ++ pythonPath;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user