-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
executable file
·52 lines (48 loc) · 1.82 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#! /usr/bin/env python
import os
from setuptools import setup
from setuptools import Extension
import distutils.command.clean
try:
from Cython.Build import cythonize
has_cython = True
except ImportError:
has_cython = False
VERSION = "0.3.3"
if __name__ == "__main__":
c_extensions = [
Extension("btdht.dht", ["btdht/dht.c"]),
Extension("btdht.krcp", ["btdht/krcp.c"]),
Extension("btdht.utils", ["btdht/utils.c"]),
]
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(
name="btdht",
version=VERSION,
packages = ['btdht'],
ext_modules = cythonize("btdht/*.pyx") if has_cython else c_extensions,
include_package_data=True,
license='GPLv3',
description="efficent full implementation of the bittorent mainline dht",
long_description=README,
author='Valentin Samir',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: C',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Communications :: File Sharing'
],
install_requires=["datrie >= 0.7", "netaddr >= 0.7.12", "six >= 1.8"],
url='https://github.com/nitmir/btdht/',
download_url="https://github.com/nitmir/btdht/releases/latest",
zip_safe=False,
)