3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.pytestCheckHook: disable setuptoolsCheckPhase

This commit is contained in:
Jonathan Ringer 2020-03-30 01:59:01 -07:00 committed by Frederik Rietdijk
parent a0b4e664c0
commit 884436b254

View file

@ -46,4 +46,16 @@ function pytestCheckPhase() {
if [ -z "${dontUsePytestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
echo "Using pytestCheckPhase"
preDistPhases+=" pytestCheckPhase"
# It's almost always the case that setuptoolsCheckPhase should not be ran
# when the pytestCheckHook is being ran
if [ -z "${useSetuptoolsCheck-}" ]; then
dontUseSetuptoolsCheck=1
# Remove command if already injected into preDistPhases
if [[ "$preDistPhases" =~ "setuptoolsCheckPhase" ]]; then
echo "Removing setuptoolsCheckPhase"
preDistPhases=${preDistPhases/setuptoolsCheckPhase/}
fi
fi
fi