8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
15 lines
376 B
Bash
15 lines
376 B
Bash
# Clean up top-level tests directory in site-package installation.
|
|
echo "Sourcing python-remove-tests-dir-hook"
|
|
|
|
pythonRemoveTestsDir() {
|
|
echo "Executing pythonRemoveTestsDir"
|
|
|
|
rm -rf $out/@pythonSitePackages@/tests
|
|
|
|
echo "Finished executing pythonRemoveTestsDir"
|
|
}
|
|
|
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
|
postFixupHooks+=(pythonRemoveTestsDir)
|
|
fi
|
|
|