aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-10-09 15:48:22 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-10-10 14:42:17 -0500
commit2e2a1aec6ce40c051c11f350e8dd4dd1348015b0 (patch)
treefc36544f21046dfeed94bd891f938a264ec1a5bf /setup.py
parent90c2989bd229b137129a484387788c9b21f25df0 (diff)
downloadmediagoblin-2e2a1aec6ce40c051c11f350e8dd4dd1348015b0.tar.lz
mediagoblin-2e2a1aec6ce40c051c11f350e8dd4dd1348015b0.tar.xz
mediagoblin-2e2a1aec6ce40c051c11f350e8dd4dd1348015b0.zip
Only install gunicorn on py2
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/setup.py b/setup.py
index 6773437e..2c722e99 100644
--- a/setup.py
+++ b/setup.py
@@ -40,24 +40,27 @@ def get_version():
raise RuntimeError("Unable to find version string in %s." %
VERSIONFILE)
-py2_only_install_requires = []
+pyversion_install_requires = []
if PY2:
- py2_only_install_requires.append('argparse') # only for < 2.7
- py2_only_install_requires.append('PasteScript')
+ pyversion_install_requires.append('argparse') # only for < 2.7
+ pyversion_install_requires.append('PasteScript')
# newer sqlalchemy-migrate requires pbr which BREAKS EVERYTHING AND IS
# TERRIBLE AND IS THE END OF ALL THINGS
# I'd love to remove this restriction.
- py2_only_install_requires.append('sqlalchemy-migrate<0.8')
+ pyversion_install_requires.append('sqlalchemy-migrate<0.8')
# # Annoying. Please remove once we can! We only indirectly
# # use pbr, and currently it breaks things, presumably till
# # their next release.
- # py2_only_install_requires.append('pbr==0.5.22')
- py2_only_install_requires.append('mock') # mock is in the stdlib for 3.3+
+ # pyversion_install_requires.append('pbr==0.5.22')
+ pyversion_install_requires.append('mock') # mock is in the stdlib for 3.3+
# PyPI version (1.4.2) does not have proper Python 3 support
- py2_only_install_requires.append('ExifRead')
+ pyversion_install_requires.append('ExifRead')
+ pyversion_install_requires.append('PasteScript')
+ pyversion_install_requires.append('Paste')
+else:
+ pyversion_install_requires('gunicorn')
install_requires = [
- 'gunicorn',
'alembic==0.6.6',
'python-dateutil',
'wtforms',
@@ -90,7 +93,7 @@ install_requires = [
# their package managers.
# 'lxml',
# 'Pillow',
-] + py2_only_install_requires
+] + pyversion_install_requires
dependency_links = []
if not PY2: