Supervisor/supervisor — pull request #67 by JensRantil (2011-12-04 19:07:03+00:00)
Title: Fall back to cProfile if profile doesn't exist.

Due to licensing issues[1], the 'profile' package is not shipped with the
Debian standard Python distribution. Unfortunately, the profile
package does not have an equivalent PyPi package and can thus not be
added as a dependency to setup.py. To resolve this issue today, a
developer needs to manually install the Debian package 'python-profiler'.

[1] http://bugs.python.org/issue12417

This was reported in issue #63 and this commit resolves the issue by
allowing a fallback to the 'cProfile' package if 'profile' can't be
imported. The 'cProfile' package does not have licensing issues and is
included in the Debian Python distribution by default (since
Python 2.5).

See also [2] for further information.

[2] http://stackoverflow.com/questions/8369678/is-the-profile-package-part-of-python-standard-distribution