mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
3973a3c79c
This will automatically remove a top-level "tests" directory from being installed.
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
|
|
|