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-05-05 17:42:27 -04:00 committed by Jonathan Ringer
parent 3d568360e7
commit 30097aeabc
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -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