setup.py 1.24 KB
Newer Older
1
from setuptools import setup, Extension
rna's avatar
rna committed
2
import os, errno
3
import versioneer
4

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

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