3 from distutils.core import setup
6 PY2 = sys.version_info[0] == 2
8 with open('VERSION') as f:
9 version_tag = f.read().strip()
10 with open("COPYING") as f:
12 with open("README.md") as f:
13 long_description = f.read()
15 # we'd probably would be better off with this some place else
16 data_files = [ ('/etc/nepi', [ 'COPYING', 'README.md' ] ) ]
18 ### requirements - used by pip install
19 required_modules = [ ]
20 # we are now using six for a portable code
21 required_modules.append('six')
22 # ipaddr in py2 used to be a separate lib
23 # within recent py3, it is now in standard library but named ipaddress
25 required_modules.append('ipaddr')
26 # this is required regardless of the python version
27 required_modules.append('networkx')
28 # refrain from mentioning these ones that are not exactly crucial
29 # and that have additional, non-python, dependencies
30 # that can easily break the whole install
31 #required_modules.append('matplotlib')
32 #required_modules.append('pygraphviz')
36 version = version_tag,
37 description = "Network Experiment Management Framework",
38 long_description = long_description,
40 author = "Alina Quereilhac",
41 author_email = "alina.quereilhac@inria.fr",
42 download_url = "http://build.onelab.eu/nepi/nepi-{v}.tar.gz".format(v=version_tag),
43 url = "http://nepi.inria.fr/",
44 platforms = "Linux, OSX",
45 data_files = data_files,
51 "nepi.resources.linux",
52 "nepi.resources.linux.ccn",
53 "nepi.resources.linux.ns3",
54 "nepi.resources.linux.ns3.ccn",
55 "nepi.resources.linux.netns",
56 "nepi.resources.netns",
58 "nepi.resources.ns3.classes",
60 "nepi.resources.planetlab",
61 "nepi.resources.planetlab.ns3",
62 "nepi.resources.planetlab.openvswitch",
66 "nepi.data.processing",
67 "nepi.data.processing.ccn",
68 "nepi.data.processing.ping"],
70 "nepi.resources.planetlab" : [ "scripts/*.py" ],
71 "nepi.resources.linux" : [ "scripts/*.py" ],
72 "nepi.resources.linux.ns3" : [ "dependencies/*.tar.gz" ]
74 install_requires = required_modules,