Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (47 sloc) 1.823 kB
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
1 #!/usr/bin/env python
2 #
3 # Copyright 2009 Facebook
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may
6 # not use this file except in compliance with the License. You may obtain
7 # a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 # License for the specific language governing permissions and limitations
15 # under the License.
16
17 import distutils.core
18 import sys
a34dc42 Import setuptools if it's available.
Ben Darnell authored
19 # Importing setuptools adds some features like "setup.py develop", but
20 # it's optional so swallow the error if it's not there.
21 try:
22 import setuptools
23 except ImportError:
24 pass
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
25
19f850e @bdarnell Declare dependencies in setup.py for automatic installation.
bdarnell authored
26 # Build the epoll extension for Linux systems with Python < 2.6
27 extensions = []
cc2363a @bdarnell Revert "Declare dependencies in setup.py for automatic installation."
bdarnell authored
28 major, minor = sys.version_info[:2]
29 python_26 = (major > 2 or (major == 2 and minor >= 6))
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
30 if "linux" in sys.platform.lower() and not python_26:
31 extensions.append(distutils.core.Extension(
32 "tornado.epoll", ["tornado/epoll.c"]))
33
f36fb66 @bdarnell Set version number to 1.2.1
bdarnell authored
34 version = "1.2.1"
34f0494 @bdarnell Add download url to setup.py for pypi
bdarnell authored
35
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
36 distutils.core.setup(
37 name="tornado",
34f0494 @bdarnell Add download url to setup.py for pypi
bdarnell authored
38 version=version,
c410292 @bdarnell Add test suite to tarball releases.
bdarnell authored
39 packages = ["tornado", "tornado.test"],
40 package_data = {
c7b118f @bdarnell Add ca-certificates.crt as a data file in setup.py
bdarnell authored
41 "tornado": ["ca-certificates.crt"],
c410292 @bdarnell Add test suite to tarball releases.
bdarnell authored
42 "tornado.test": ["README", "test.crt", "test.key"],
43 },
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
44 ext_modules = extensions,
45 author="Facebook",
46 author_email="python-tornado@googlegroups.com",
47 url="http://www.tornadoweb.org/",
34f0494 @bdarnell Add download url to setup.py for pypi
bdarnell authored
48 download_url="http://github.com/downloads/facebook/tornado/tornado-%s.tar.gz" % version,
2afa973 @finiteloop Move Tornado project to Github
finiteloop authored
49 license="http://www.apache.org/licenses/LICENSE-2.0",
50 description="Tornado is an open source version of the scalable, non-blocking web server and and tools that power FriendFeed",
51 )
Something went wrong with that request. Please try again.