I just noticed that the import profile fails on my Ubuntu Linux box that has Python 2.6.4 installed. This surprised me because I thought it was part of the standard Python distribution.
It turned out I needed to install the python-profiler Debian package to get the profile package. My question is, should I expect profile to exist in a Python installation? If not, is there a PyPi package for it that I can depend on in my setup.py?
Python says
profileshould always exist in a Python installation, but there are some license problems that kept it from being included in Debian’s, and thus in Ubuntu’s main/universe repositories. So it has to live in another package, and there’s no PyPI alternative for it since Python includes it.It’s probably best to tell your Debian/Ubuntu users to install
python-profilermanually. Since profiling is a feature that’s only really useful for programmers, hopefully it won’t inconvenience them too much.The copyright holders (Disney) have changed the license recently, so the problem will eventually go away.