forked from tornadoweb/tornado
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare dependencies in setup.py for automatic installation.
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,16 @@ | |
except ImportError: | ||
pass | ||
|
||
# Build the epoll extension for Linux systems with Python < 2.6 | ||
extensions = [] | ||
major, minor = sys.version_info[:2] | ||
python_26 = (major > 2 or (major == 2 and minor >= 6)) | ||
|
||
requirements = ["pycurl"] | ||
if not python_26: | ||
# Python 2.6 includes a json module in the standard library | ||
requirements.append("simplejson") | ||
|
||
# Build the epoll extension for Linux systems with Python < 2.6 | ||
extensions = [] | ||
if "linux" in sys.platform.lower() and not python_26: | ||
extensions.append(distutils.core.Extension( | ||
"tornado.epoll", ["tornado/epoll.c"])) | ||
|
@@ -42,6 +48,7 @@ | |
"tornado.test": ["README", "test.crt", "test.key"], | ||
}, | ||
ext_modules = extensions, | ||
install_requires = requirements, | ||
author="Facebook", | ||
author_email="[email protected]", | ||
url="http://www.tornadoweb.org/", | ||
|