2020-03-02 17:37:05 +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-05-05 22:42:27 +01:00
|
|
|
rm -rf $out/@pythonSitePackages@/test
|
2020-03-02 17:37:05 +00:00
|
|
|
|
|
|
|
echo "Finished executing pythonRemoveTestsDir"
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
|
|
|
postFixupHooks+=(pythonRemoveTestsDir)
|
|
|
|
fi
|