From cb7b0a08fdc4e3b7bc1050a05c45d5d56ac2e385 Mon Sep 17 00:00:00 2001 From: Tyson Clugg Date: Fri, 30 Oct 2015 14:21:49 +1100 Subject: [PATCH] Fixes #20 -- depend on gevent>=1.1b6 if not running CPython 2.7 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ceb862b..83a44b9 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python """Django/PostgreSQL implementation of the Meteor DDP service.""" import platform +import sys from setuptools import setup, find_packages CLASSIFIERS = [ @@ -48,10 +49,12 @@ IMPLEMENTATION_INSTALL_REQUIRES = { # extra requirements for CPython implementation 'CPython': [ 'psycopg2>=2.5.4', + 'gevent>=1.1b6' if sys.version_info >= (3, 0) else 'gevent>=1.0', ], # extra requirements for all other Python implementations None: [ 'psycopg2cffi>=2.7.2', + 'gevent>=1.1b6', ], } @@ -68,7 +71,6 @@ setup( include_package_data=True, install_requires=[ 'Django>=1.7', - 'gevent>=1.0', 'gevent-websocket>=0.9,!=0.9.4', 'meteor-ejson>=1.0', 'psycogreen>=1.0',