8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
18 lines
479 B
Bash
18 lines
479 B
Bash
# 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"
|
|
}
|
|
|
|
if [ -z "${dontUseSetuptoolsCheck-}" ] && [ -z "${installCheckPhase-}" ]; then
|
|
echo "Using setuptoolsCheckPhase"
|
|
preDistPhases+=" setuptoolsCheckPhase"
|
|
fi
|