X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=a252096674ff852151fb15d281bb3bd6aa4fa828;hb=40b568db5ed0ba760da8b14a00814db7d01a3944;hp=235743d58b07d4a8375ad70fe880096679be6563;hpb=3fe2e6f7812888dc1366915545dd2243ff6fb1bb;p=nepi.git diff --git a/setup.py b/setup.py index 235743d5..a2520966 100755 --- a/setup.py +++ b/setup.py @@ -1,19 +1,25 @@ #!/usr/bin/env python from distutils.core import setup -import sys +# python2 or python3 ? +import sys PY2 = sys.version_info[0] == 2 -with open('VERSION') as f: - version_tag = f.read().strip() +# read version +# while cleaning up version.py might just not be there +try: + from nepi.util.version import version_tag +except: + version_tag = 'cleaningup' + +### NOTE: these 2 files are made available at install-time in MANIFEST.in +# read licence info 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' ] ) ] - ### requirements - used by pip install required_modules = [ ] # we are now using six for a portable code @@ -41,8 +47,6 @@ setup( download_url = "http://build.onelab.eu/nepi/nepi-{v}.tar.gz".format(v=version_tag), url = "http://nepi.inria.fr/", platforms = "Linux, OSX", - data_files = data_files, - package_dir = {"": "src"}, packages = [ "nepi", "nepi.execution",