lol

python.pkgs.pythonNamespacesHook: check parent directory exists before removing child

authored by

Jonathan Ringer and committed by
Jonathan Ringer
ae418d54 f56f3f7d

+6 -1
+6 -1
pkgs/development/interpreters/python/hooks/python-namespaces-hook.sh
··· 25 25 fi 26 26 27 27 # remove ${pname}-${version}-${python-interpeter}-nspkg.pth 28 - if [ -z ${dontRemovePth-} ]; then 28 + # 29 + # Still need to check that parent directory exists in the 30 + # event of a "meta-package" package, which will just install 31 + # other packages, but not produce anything in site-packages 32 + # besides meta information 33 + if [ -d "${constructedPath}/../" -a -z ${dontRemovePth-} ]; then 29 34 # .pth files are located in the parent directory of a module 30 35 @findutils@/bin/find ${constructedPath}/../ -name '*-nspkg.pth' -exec rm -v "{}" + 31 36 fi