git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog file
[nepi.git]
/
setup.py
diff --git
a/setup.py
b/setup.py
index
235743d
..
3225cc2
100755
(executable)
--- a/
setup.py
+++ b/
setup.py
@@
-1,18
+1,26
@@
#!/usr/bin/env python
from distutils.core import setup
#!/usr/bin/env python
from distutils.core import setup
-import sys
+# python2 or python3 ?
+import sys
PY2 = sys.version_info[0] == 2
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("COPYING") as f:
license = f.read()
-with open("README") as f:
+with open("README
.md
") as f:
long_description = f.read()
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 = [ ]
### requirements - used by pip install
required_modules = [ ]
@@
-42,7
+50,6
@@
setup(
url = "http://nepi.inria.fr/",
platforms = "Linux, OSX",
data_files = data_files,
url = "http://nepi.inria.fr/",
platforms = "Linux, OSX",
data_files = data_files,
- package_dir = {"": "src"},
packages = [
"nepi",
"nepi.execution",
packages = [
"nepi",
"nepi.execution",