
Go beyond the obvious setup hooks now, with a bit of sed, with a skipped case: - cc-wrapper's `dontlink`, because it already is handled. Also, in nix files escaping was manually added. EMP
19 lines
476 B
Bash
19 lines
476 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
|