python/pythonNamespacesSetupHook: add to addtional files to remove
This commit is contained in:
parent
5a8da1a930
commit
a06fe88f75
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@ pythonNamespacesHook() {
|
|||
rm -v "$pathToRemove"
|
||||
fi
|
||||
|
||||
# remove ${pname}-${version}-${python-interpeter}-nspkg.pth
|
||||
if [ -z ${dontRemovePth-} ]; then
|
||||
# .pth files are located in the parent directory of a module
|
||||
@findutils@/bin/find ${constructedPath}/../ -name '*-nspkg.pth' -exec rm -v "{}" +
|
||||
fi
|
||||
|
||||
# remove __pycache__/ entry, can be interpreter specific. E.g. __init__.cpython-38.pyc
|
||||
# use null characters to perserve potential whitespace in filepath
|
||||
if [ -d "$pycachePath" ]; then
|
||||
|
|
Loading…
Reference in a new issue