-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
31 lines (25 loc) · 933 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from distutils.core import setup, Extension
import sys
if sys.version < '2.7' and not sys.version[0] == "3":
print("pyaio requires python of at least version 2.7 to build correctly")
version = '0.4'
pyaiocore = \
Extension('pyaio.core',
sources = ['pyaio/core.c'],
libraries = ['rt'],
extra_compile_args = ['-D_FILE_OFFSET_BITS=64'],
define_macros=[('PYAIO_VERSION', '"{0}"'.format(version))])
setup(
name = 'pyaio',
version = version,
description = 'Python Asynchronous I/O bindings (aio.h)',
author = 'Felipe Cruz',
author_email = '[email protected]',
url = 'https://github.com/felipecruz/pyaio',
classifiers = [
'Operating System :: POSIX',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License'
],
ext_modules = [pyaiocore],
py_modules = ['pyaio.gevent'])