mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Require Pylons == 0.9.6.2, as reddit doesn't work with later versions
This commit is contained in:
12
r2/setup.py
12
r2/setup.py
@@ -65,6 +65,16 @@ except ImportError:
|
||||
print "Installing Sqlalchemy 0.3.10 from the cheese shop"
|
||||
easy_install(["http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.3.10.tar.gz"])
|
||||
|
||||
# ditto for pylons
|
||||
try:
|
||||
import pylons
|
||||
vers = pylons.__version__
|
||||
assert vers.startswith('0.9.6.') or vers == '0.9.6', \
|
||||
("reddit is only compatible with pylons 0.9.6, not '%s'" % vers)
|
||||
except ImportError:
|
||||
print "Installing Pylons 0.9.6.2 from the cheese shop"
|
||||
easy_install(["http://pypi.python.org/packages/source/P/Pylons/Pylons-0.9.6.2.tar.gz"])
|
||||
|
||||
filtermod = Extension('Cfilters',
|
||||
sources = ['r2/lib/c/filters.c'])
|
||||
|
||||
@@ -75,7 +85,7 @@ setup(
|
||||
#author="",
|
||||
#author_email="",
|
||||
#url="",
|
||||
install_requires=["Pylons>=0.9.6",
|
||||
install_requires=["Pylons==0.9.6.2",
|
||||
"pytz",
|
||||
"pycrypto",
|
||||
"Babel>=0.9.1",
|
||||
|
||||
Reference in New Issue
Block a user