mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
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:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user