Permalink
Browse files

Conditionally install simplejson, refs flask issue #328

  • Loading branch information...
1 parent 1f973a9 commit eaf90593a93002fa96d807c75a77b5c5bd46d981 @coleifer committed Mar 29, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 setup.py
View
@@ -1,5 +1,9 @@
+import sys
from setuptools import setup, find_packages
+requirements = ['Flask', 'werkzeug', 'jinja2', 'peewee>=0.9.0', 'wtforms', 'wtf-peewee']
+if sys.version_info[:2] < (2, 6):
+ requirements.append('simplejson')
setup(
name='flask-peewee',
@@ -31,9 +35,7 @@
},
zip_safe=False,
platforms='any',
- install_requires=[
- 'Flask', 'werkzeug', 'jinja2', 'peewee>=0.9.0', 'wtforms', 'wtf-peewee',
- ],
+ install_requires=requirements,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',

0 comments on commit eaf9059

Please sign in to comment.