setup.py 1.35 KB
Newer Older
1
from setuptools import setup
2
from distutils.extension import Extension
3
from Cython.Build import cythonize
rna's avatar
rna committed
4
import os, errno
5
import versioneer
6

7
ext = Extension(name='prrt', language="c", sources=["prrt/*.pyx"])
rna's avatar
rna committed
8 9 10 11 12 13
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

14 15
ext_modules = cythonize(ext, gdb_debug=True)

rna's avatar
rna committed
16

17
setup(
18
    name='prrt',
19
    version=versioneer.get_version(),
20 21 22 23 24 25 26 27 28 29 30 31 32
    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
33 34
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
35
        'Programming Language :: Python :: 3',
36
        'Programming Language :: Python :: 3.5'
37
    ],
38
    install_requires=["cython"],
39
    keywords='prrt protocol',
40
    cmdclass=versioneer.get_cmdclass(),
41
    include_dirs=["./prrt"],
42 43 44
    ext_modules=ext_modules

)