gthreads: only check requirements for python < 3.4

This commit is contained in:
benoitc 2014-06-01 20:44:50 +02:00
parent abac771c44
commit ff6169cc20
2 changed files with 16 additions and 5 deletions

View File

@ -11,7 +11,6 @@
# closed.
from collections import deque
import concurrent.futures as futures
from datetime import datetime
import errno
from functools import partial
@ -28,10 +27,25 @@ from .. import util
from . import base
from .. import six
try:
import concurrent.futures as futures
except ImportError:
raise RuntimeError("""
You need 'concurrent' installed to use this worker with this python
version.
""")
try:
from asyncio import selectors
except ImportError:
from trollius import selectors
try:
from trollius import selectors
except ImportError:
raise RuntimeError("""
You need 'trollius' installed to use this worker with this python
version.
""")
class TConn():

View File

@ -63,9 +63,6 @@ class PyTest(Command):
REQUIREMENTS = []
if sys.version_info[0] == 2:
REQUIREMENTS.append('futures')
setup(
name = 'gunicorn',