forked from mirrors/nixpkgs
16 lines
376 B
Bash
16 lines
376 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
|
||
|
|
||
|
echo "Finished executing pythonRemoveTestsDir"
|
||
|
}
|
||
|
|
||
|
if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
|
||
|
postFixupHooks+=(pythonRemoveTestsDir)
|
||
|
fi
|
||
|
|