summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-26 10:52:45 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-26 10:52:45 +0100
commit684f3be00011d3c6cc4f81f5cb61c157e5eb5205 (patch)
tree886f9bbb1d98945db650803971bc72c56cebd142 /setup.py
downloadtrollius-git-684f3be00011d3c6cc4f81f5cb61c157e5eb5205.tar.gz
Python issue #23208: Add BaseEventLoop._current_handle
In debug mode, BaseEventLoop._run_once() now sets the BaseEventLoop._current_handle attribute to the handle currently executed. In release mode or when no handle is executed, the attribute is None. BaseEventLoop.default_exception_handler() displays the traceback of the current handle if available.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..2581bfd
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,49 @@
+# Release procedure:
+# - run tox (to run runtests.py and run_aiotest.py)
+# - maybe test examples
+# - update version in setup.py
+# - hg ci
+# - hg tag VERSION
+# - hg push
+# - run on Linux: python setup.py register sdist upload
+# - run on Windows: python release.py VERSION
+# - increment version in setup.py
+# - hg ci && hg push
+
+import os
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ # Use distutils.core as a fallback.
+ # We won't be able to build the Wheel file on Windows.
+ from distutils.core import setup, Extension
+
+extensions = []
+if os.name == 'nt':
+ ext = Extension(
+ 'asyncio._overlapped', ['overlapped.c'], libraries=['ws2_32'],
+ )
+ extensions.append(ext)
+
+with open("README") as fp:
+ long_description = fp.read()
+
+setup(
+ name="asyncio",
+ version="3.4.3",
+
+ description="reference implementation of PEP 3156",
+ long_description=long_description,
+ url="http://www.python.org/dev/peps/pep-3156/",
+
+ classifiers=[
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.3",
+ ],
+
+ packages=["asyncio"],
+ test_suite="runtests.runtests",
+
+ ext_modules=extensions,
+)