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 46 src/ctools-setup
47 47 pyext/build/
48 48 pyext/setup.py
  49 +pyext/ctools/__init__.py
49 50 pyext/ctools/tools.py
50 51 pyext/ctools/tools_wrap.cpp
  52 +cscripts/__init__.py
51 53 src/ctbin/ctbin
52 54 src/ctlike/ctlike
53 55 src/cttsmap/cttsmap
... ...
configure.ac
... ... @@ -920,10 +920,12 @@ AC_CONFIG_FILES([Makefile
920 920 test/test_cscripts.sh
921 921 pyext/Makefile
922 922 pyext/setup.py
  923 + pyext/ctools/__init__.py
  924 + cscripts/__init__.py
  925 + cscripts/Makefile
923 926 caldb/Makefile
924 927 models/Makefile
925 928 examples/Makefile
926   - cscripts/Makefile
927 929 ctools.pc
928 930 testconf.sh],
929 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 53 Run cscripts tests.
54 54 """
55 55 print("No cscripts unit tests have been implemented so far.")
  56 +
  57 +# Add version
  58 +__version__ = '@PACKAGE_VERSION@'
56 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 34 del gammalib
35 35 del bad_entries
36 36 del entry
  37 +
  38 +# Add version
  39 +__version__ = '@PACKAGE_VERSION@'
37 40 \ No newline at end of file
... ...