-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
119 lines (109 loc) · 3.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# coding=utf-8
import numpy
from Cython.Build import cythonize
from setuptools import setup
from setuptools.extension import Extension
ext = [
Extension(
'sol.opt.app',
['src/sol/opt/app.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.opt.composer',
['src/sol/opt/composer.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.opt.funcs',
['src/sol/opt/funcs.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.opt.gurobiwrapper',
['src/sol/opt/gurobiwrapper.pyx'],
include_dirs=[numpy.get_include()],
define_macros=[('CYTHON_TRACE', 1),
('CYTHON_TRACE_NOGIL', 1)]
),
Extension(
'sol.opt.varnames',
['src/sol/opt/varnames.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.path.generate',
['src/sol/path/generate.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.path.paths',
['src/sol/path/paths.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.path.predicates',
['src/sol/path/predicates.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.path.select',
['src/sol/path/select.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.topology.provisioning',
['src/sol/topology/provisioning.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.topology.topologynx',
['src/sol/topology/topologynx.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.topology.traffic',
['src/sol/topology/traffic.pyx'],
include_dirs=[numpy.get_include()]
),
Extension(
'sol.utils.ph',
['src/sol/utils/ph.pyx'],
include_dirs=[numpy.get_include()]
),
]
setup(
name='sol',
version='0.9.1',
description='SOL: SDN Optimization Layer',
keywords=['sdn', 'network', 'optimization', 'framework', 'research', 'sol'],
author='Victor Heorhiadi',
author_email='[email protected]',
license='MIT',
package_dir={'': 'src'},
packages=['sol'],
url='https://github.com/progwriter/SOL',
requires=['networkx', 'requests', 'netaddr', 'numpy', 'cython', 'six'],
tests_require=['pytest', 'hypothesis', "flake8"],
ext_modules=cythonize(ext, compiler_directives={
'cdivision': True,
'embedsignature': True,
'boundscheck': False,
'binding': True,
'linetrace': True
}),
package_data={'sol': ['__init__.pxd']},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: System :: Networking',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)