X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=3225cc275fce1e0206336bb3b1b7f57df93fb2f4;hb=deec1bc80c5831cd44a87341b18758314fbb386e;hp=728e04eef1c089a3db58426028a9508acca6be09;hpb=7bdd35bc0d846e6ae89bdc8aaa2e919bbac25096;p=nepi.git diff --git a/setup.py b/setup.py index 728e04ee..3225cc27 100755 --- a/setup.py +++ b/setup.py @@ -1,12 +1,19 @@ #!/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' + +# read licence info with open("COPYING") as f: license = f.read() with open("README.md") as f: @@ -43,7 +50,6 @@ setup( url = "http://nepi.inria.fr/", platforms = "Linux, OSX", data_files = data_files, - package_dir = {"": "src"}, packages = [ "nepi", "nepi.execution",