mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
compatibility with python 2
Add support of the threaded worker on python 2.7. python 2.7 has no futures module. With this change the compatibility module is installed.
This commit is contained in:
parent
67800292e0
commit
14f71ebf39
8
setup.py
8
setup.py
@ -10,6 +10,7 @@ import sys
|
|||||||
|
|
||||||
from gunicorn import __version__
|
from gunicorn import __version__
|
||||||
|
|
||||||
|
|
||||||
CLASSIFIERS = [
|
CLASSIFIERS = [
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
'Environment :: Other Environment',
|
'Environment :: Other Environment',
|
||||||
@ -61,6 +62,11 @@ class PyTest(Command):
|
|||||||
raise SystemExit(errno)
|
raise SystemExit(errno)
|
||||||
|
|
||||||
|
|
||||||
|
REQUIREMENTS = []
|
||||||
|
if sys.version_info[0] == 2:
|
||||||
|
REQUIREMENTS.append('futures')
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'gunicorn',
|
name = 'gunicorn',
|
||||||
version = __version__,
|
version = __version__,
|
||||||
@ -80,6 +86,8 @@ setup(
|
|||||||
tests_require = tests_require,
|
tests_require = tests_require,
|
||||||
cmdclass = {'test': PyTest},
|
cmdclass = {'test': PyTest},
|
||||||
|
|
||||||
|
install_requires = REQUIREMENTS,
|
||||||
|
|
||||||
entry_points="""
|
entry_points="""
|
||||||
|
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user