setup.py 1.4 KB
Newer Older
1
from setuptools import setup
Andreas Schmidt's avatar
Andreas Schmidt committed
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

Andreas Schmidt's avatar
Andreas Schmidt committed
7
os.environ["CC"] = "gcc-5"
8
os.environ["CXX"] = "g++-5"
9

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

17
18
ext_modules = cythonize(ext, gdb_debug=True)

rna's avatar
rna committed
19

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

)