Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.933 kb
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 = 'felipecruz@loogica.net',
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'])
Jump to Line
Something went wrong with that request. Please try again.