apache/bodhi.wsgi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 8f7f66275c3fa103ea2903fd218ad01e4f74e2c4 Author: Luke Macken lmacken@redhat.com Date: Thu Sep 2 14:30:16 2010 -0400
Add some more setuptools magic to our wsgi file to work with multiple version of CherryPy installed
diff --git a/apache/bodhi.wsgi b/apache/bodhi.wsgi index e2910dc..61655e0 100644 --- a/apache/bodhi.wsgi +++ b/apache/bodhi.wsgi @@ -1,7 +1,10 @@ import sys sys.stdout = sys.stderr + +import __main__ +__main__.__requires__ = __requires__ = 'CherryPy<3.0' import pkg_resources -pkg_resources.require("CherryPy<3.0") +pkg_resources.require(__requires__)
import os os.environ['PYTHON_EGG_CACHE'] = '/var/www/.python-eggs'