buildPythonPackage: add installFlags
This commit is contained in:
parent
c98098fdca
commit
895f51222e
@ -42,6 +42,9 @@
|
|||||||
# generated binaries.
|
# generated binaries.
|
||||||
, makeWrapperArgs ? []
|
, makeWrapperArgs ? []
|
||||||
|
|
||||||
|
# Additional flags to pass to "pip install".
|
||||||
|
, installFlags ? []
|
||||||
|
|
||||||
, ... } @ attrs:
|
, ... } @ attrs:
|
||||||
|
|
||||||
|
|
||||||
@ -95,7 +98,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
|
|||||||
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
||||||
|
|
||||||
pushd dist
|
pushd dist
|
||||||
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache
|
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache ${toString installFlags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user