from setuptools import setup from distutils.extension import Extension from Cython.Build import cythonize import os, errno import versioneer ext = Extension(name='prrt', language="c", sources=["prrt/*.pyx"]) try: os.remove(os.path.join(os.path.dirname(os.path.realpath(__file__)), "prrt/prrt.c")) except OSError as e: if e.errno != errno.ENOENT: raise ext_modules = cythonize(ext, gdb_debug=True) setup( name='prrt', version=versioneer.get_version(), description='Predictably Reliable Real-time Transport', long_description='Predictably Reliable Real-time Transport Protocol', url='https://git.nt.uni-saarland.de/LARN/PRRT', author='Andreas Schmidt', author_email='schmidt@nt.uni-saarland.de', license='MIT', classifiers=[ # 3 - Alpha // 4 - Beta // 5 - Production/Stable 'Development Status :: 3 - Alpha', # Audience and Topic 'Intended Audience :: Developers', 'Topic :: Communications' # Supported Python Versions 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5' ], install_requires=["cython"], keywords='prrt protocol', cmdclass=versioneer.get_cmdclass(), include_dirs=["./prrt"], ext_modules=ext_modules )