1# Clean up top-level tests directory in site-package installation.
2# shellcheck shell=bash
3
4echo "Sourcing python-remove-tests-dir-hook"
5
6pythonRemoveTestsDir() {
7 echo "Executing pythonRemoveTestsDir"
8
9 # shellcheck disable=SC2154
10 rm -rf "$out/@pythonSitePackages@/tests"
11 rm -rf "$out/@pythonSitePackages@/test"
12
13 echo "Finished executing pythonRemoveTestsDir"
14}
15
16if [ -z "${dontUsePythonRemoveTestsDir-}" ]; then
17 postFixupHooks+=(pythonRemoveTestsDir)
18fi