841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
15 lines
417 B
Bash
15 lines
417 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
|
|
rm -rf $out/@pythonSitePackages@/test
|
|
|
|
echo "Finished executing pythonRemoveTestsDir"
|
|
}
|
|
|
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
|
postFixupHooks+=(pythonRemoveTestsDir)
|
|
fi
|