2019-07-17 20:36:47 +02:00
|
|
|
# Setup hook for setuptools.
|
|
|
|
echo "Sourcing setuptools-check-hook"
|
|
|
|
|
|
|
|
setuptoolsCheckPhase() {
|
|
|
|
echo "Executing setuptoolsCheckPhase"
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
cp -f @setuppy@ nix_run_setup
|
|
|
|
@pythonCheckInterpreter@ nix_run_setup test
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
echo "Finished executing setuptoolsCheckPhase"
|
|
|
|
}
|
|
|
|
|
2019-10-31 18:59:18 +01:00
|
|
|
if [ -z "${dontUseSetuptoolsCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
2019-07-17 20:36:47 +02:00
|
|
|
echo "Using setuptoolsCheckPhase"
|
|
|
|
preDistPhases+=" setuptoolsCheckPhase"
|
|
|
|
fi
|