-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
56 lines (49 loc) · 1.38 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
53
54
55
56
import sys
from setuptools import setup, Extension
if sys.version_info.major >= 3:
sources = ['dublintraceroute/py3/_dublintraceroute.cc']
else:
sources = ['dublintraceroute/py2/_dublintraceroute.cc']
dublintraceroute = Extension(
'dublintraceroute._dublintraceroute',
language='c++',
libraries=['dublintraceroute'],
include_dirs=[
'../include',
'/usr/include/jsoncpp', # specific to debian-like systems
'/opt/homebrew/include', #specific to MacOS
],
sources=sources,
extra_compile_args=[
'-std=c++11',
'-ldublintraceroute',
],
extra_link_args=[],
)
setup(
name='dublintraceroute',
packages=['dublintraceroute'],
version='0.5.0',
author='Andrea Barberio',
author_email='[email protected]',
description='NAT-aware multipath traceroute',
license='BSD',
url='https://www.dublin-traceroute.net',
download_url='https://github.com/insomniacslk/python-dublin-traceroute/archive/v0.5.0.tar.gz',
platforms=['linux', 'darwin'],
ext_modules=[dublintraceroute],
keywords=['traceroute', 'networking', 'multipath', 'nat'],
classifiers=[],
install_requires=[
"pygraphviz",
"tabulate",
],
setup_requires=[
'pytest_runner',
],
tests_requires=[
'pytest',
'pytest-cov',
'pytest-faulthandler',
],
)