Commit ae42e89838abdebf7d1d637ed824f02bd02bcff0

Authored by Jürgen Knödlseder
1 parent 00a3a8ad

Add __version__ variable to cscripts.

Add __version__ variable to ctools Python module.

Rename __init__.py file into __init__.py.in, add version number, and __init__.py creation instruction into configure.ac.
.gitignore
@@ -46,8 +46,10 @@ doc/man @@ -46,8 +46,10 @@ doc/man
46 src/ctools-setup 46 src/ctools-setup
47 pyext/build/ 47 pyext/build/
48 pyext/setup.py 48 pyext/setup.py
  49 +pyext/ctools/__init__.py
49 pyext/ctools/tools.py 50 pyext/ctools/tools.py
50 pyext/ctools/tools_wrap.cpp 51 pyext/ctools/tools_wrap.cpp
  52 +cscripts/__init__.py
51 src/ctbin/ctbin 53 src/ctbin/ctbin
52 src/ctlike/ctlike 54 src/ctlike/ctlike
53 src/cttsmap/cttsmap 55 src/cttsmap/cttsmap
configure.ac
@@ -920,10 +920,12 @@ AC_CONFIG_FILES([Makefile @@ -920,10 +920,12 @@ AC_CONFIG_FILES([Makefile
920 test/test_cscripts.sh 920 test/test_cscripts.sh
921 pyext/Makefile 921 pyext/Makefile
922 pyext/setup.py 922 pyext/setup.py
  923 + pyext/ctools/__init__.py
  924 + cscripts/__init__.py
  925 + cscripts/Makefile
923 caldb/Makefile 926 caldb/Makefile
924 models/Makefile 927 models/Makefile
925 examples/Makefile 928 examples/Makefile
926 - cscripts/Makefile  
927 ctools.pc 929 ctools.pc
928 testconf.sh], 930 testconf.sh],
929 [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi; 931 [if test -f test/test_cscripts.sh; then chmod +x test/test_cscripts.sh; fi;
cscripts/__init__.py renamed to cscripts/__init__.py.in
@@ -53,3 +53,6 @@ def test(): @@ -53,3 +53,6 @@ def test():
53 Run cscripts tests. 53 Run cscripts tests.
54 """ 54 """
55 print("No cscripts unit tests have been implemented so far.") 55 print("No cscripts unit tests have been implemented so far.")
  56 +
  57 +# Add version
  58 +__version__ = '@PACKAGE_VERSION@'
56 \ No newline at end of file 59 \ No newline at end of file
pyext/ctools/__init__.py renamed to pyext/ctools/__init__.py.in
@@ -34,3 +34,6 @@ del tools @@ -34,3 +34,6 @@ del tools
34 del gammalib 34 del gammalib
35 del bad_entries 35 del bad_entries
36 del entry 36 del entry
  37 +
  38 +# Add version
  39 +__version__ = '@PACKAGE_VERSION@'
37 \ No newline at end of file 40 \ No newline at end of file