X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=728e04eef1c089a3db58426028a9508acca6be09;hb=7bdd35bc0d846e6ae89bdc8aaa2e919bbac25096;hp=c4311b495732d848978293401dab754f4590cb8b;hpb=7137010b13dcede2f6efcff0be902e1676b40144;p=nepi.git diff --git a/setup.py b/setup.py index c4311b49..728e04ee 100755 --- a/setup.py +++ b/setup.py @@ -3,14 +3,33 @@ from distutils.core import setup import sys +PY2 = sys.version_info[0] == 2 + with open('VERSION') as f: version_tag = f.read().strip() with open("COPYING") as f: license = f.read() -with open("README") as f: +with open("README.md") as f: long_description = f.read() -data_files = [ ('/etc/nepi', [ 'VERSION', 'COPYING', 'README' ] ) ] +# we'd probably would be better off with this some place else +data_files = [ ('/etc/nepi', [ 'COPYING', 'README.md' ] ) ] + +### requirements - used by pip install +required_modules = [ ] + # we are now using six for a portable code +required_modules.append('six') + # ipaddr in py2 used to be a separate lib + # within recent py3, it is now in standard library but named ipaddress +if PY2: + required_modules.append('ipaddr') + # this is required regardless of the python version +required_modules.append('networkx') + # refrain from mentioning these ones that are not exactly crucial + # and that have additional, non-python, dependencies + # that can easily break the whole install +#required_modules.append('matplotlib') +#required_modules.append('pygraphviz') setup( name = "nepi", @@ -53,10 +72,5 @@ setup( "nepi.resources.linux" : [ "scripts/*.py" ], "nepi.resources.linux.ns3" : [ "dependencies/*.tar.gz" ] }, - install_requires = [ - "ipaddr", - "networkx", - "pygraphviz", - "matplotlib", - ] + install_requires = required_modules, )