2020-04-24 23:36:52 +00:00
|
|
|
# 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
|
2021-06-28 23:13:55 +00:00
|
|
|
rm -rf $out/@pythonSitePackages@/test
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
echo "Finished executing pythonRemoveTestsDir"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
|
|
|
postFixupHooks+=(pythonRemoveTestsDir)
|
|
|
|
fi
|