Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 2d654569e7b51db944e788a989e293903f56f297
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Tue Jan 29 20:35:46 2013 +0100
Add code to make sure fedocal runs properly on EL6
---------------------------------------------------------------
fedocal.wsgi | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/fedocal.wsgi b/fedocal.wsgi
index b04ebe4..1262b5d 100644
--- a/fedocal.wsgi
+++ b/fedocal.wsgi
@@ -1,5 +1,12 @@
#-*- coding: UTF-8 -*-
+# The three lines below are required to run on EL6 as EL6 has
+# two possible version of python-sqlalchemy and python-jinja2
+# These lines make sure the application uses the correct version.
+import __main__
+__main__.__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4']
+import pkg_resources
+
import os
## Set the environment variable pointing to the configuration file
os.environ['FEDOCAL_CONFIG'] = '/path/to/your/own/fedocal.cfg'