Only install gunicorn on py2
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 9 Oct 2014 20:48:22 +0000 (15:48 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 10 Oct 2014 19:42:17 +0000 (14:42 -0500)
setup.py

index 6773437ef9a1214e705958ef8d0d961fa831427b..2c722e99766d20412ff9318fb917b6a67d26248e 100644 (file)
--- 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: