pythonPackages.pytestCheckHook: disable setuptoolsCheckPhase
This commit is contained in:
parent
a0b4e664c0
commit
884436b254
@ -46,4 +46,16 @@ function pytestCheckPhase() {
|
|||||||
if [ -z "${dontUsePytestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
if [ -z "${dontUsePytestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
||||||
echo "Using pytestCheckPhase"
|
echo "Using pytestCheckPhase"
|
||||||
preDistPhases+=" 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
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user