#!/usr/bin/python -tt # I have two versions of cherrypy installed # cherrypy-3.x is installed in the system --single-version-externally-managed # cherrypy-2.x is installed multiple version # # Now, let's try to confuse setuptools # import cherrypy __requires__ = 'CherryPy <= 2.9' import pkg_resources pkg_resources.require('CherryPy <= 2.9') import cherrypy print cherrypy.__version__