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 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/810019 Title: UserWarning printed on import pkg_resources' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/distribute/+bug/810019/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs