mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
include offlineDistutils in preConfigure instead of configurePhase
This commit is contained in:
parent
ac89a3de46
commit
a4ded47776
@ -22,6 +22,8 @@
|
|||||||
easy_install --always-unzip --prefix="$out" .
|
easy_install --always-unzip --prefix="$out" .
|
||||||
''
|
''
|
||||||
|
|
||||||
|
, preConfigure ? "true"
|
||||||
|
|
||||||
, buildPhase ? "true"
|
, buildPhase ? "true"
|
||||||
|
|
||||||
, doCheck ? true
|
, doCheck ? true
|
||||||
@ -32,8 +34,6 @@
|
|||||||
python setup.py test
|
python setup.py test
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
''
|
''
|
||||||
, configurePhase ? "true"
|
|
||||||
|
|
||||||
, postInstall ? ""
|
, postInstall ? ""
|
||||||
|
|
||||||
, ... } @ attrs:
|
, ... } @ attrs:
|
||||||
@ -48,12 +48,12 @@ python.stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
buildInputStrings = map toString buildInputs;
|
buildInputStrings = map toString buildInputs;
|
||||||
|
|
||||||
configurePhase = ''
|
pythonPath = [ setuptools ] ++ pythonPath;
|
||||||
export PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}:$PYTHONPATH"
|
|
||||||
${configurePhase}
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonPath = [ setuptools] ++ pythonPath;
|
preConfigure = ''
|
||||||
|
PYTHONPATH="${offlineDistutils}/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
||||||
|
${preConfigure}
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
||||||
|
Loading…
Reference in New Issue
Block a user