mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
30097aeabc
Some packages have their tests installed at ./test, not just ./tests. This covers that use case by removing both.
16 lines
417 B
Bash
16 lines
417 B
Bash
# 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
|
|
rm -rf $out/@pythonSitePackages@/test
|
|
|
|
echo "Finished executing pythonRemoveTestsDir"
|
|
}
|
|
|
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
|
postFixupHooks+=(pythonRemoveTestsDir)
|
|
fi
|