The find line which attempts to remove *.pth doesn't do so. You need to add parentheses around it like so
find $(PKGDIR) \( -name '*.pth' -or -name 'namespace_packages.txt' \) -delete
The find line which attempts to remove *.pth doesn't do so. You need to add parentheses around it like so
find $(PKGDIR) \( -name '*.pth' -or -name 'namespace_ packages. txt' \) -delete