python: pythonRemoveTestsDirHook removes /test

Some packages have their tests installed at ./test, not just ./tests.
This covers that use case by removing both.
This commit is contained in:
Drew Risinger
2021-06-21 16:48:39 -07:00
committed by Jonathan Ringer
parent 3d568360e7
commit 30097aeabc
@@ -5,6 +5,7 @@ pythonRemoveTestsDir() {
echo "Executing pythonRemoveTestsDir"
rm -rf $out/@pythonSitePackages@/tests
rm -rf $out/@pythonSitePackages@/test
echo "Finished executing pythonRemoveTestsDir"
}
@@ -12,4 +13,3 @@ pythonRemoveTestsDir() {
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
postFixupHooks+=(pythonRemoveTestsDir)
fi