Commit 0e53abdb99fe857b511dd354ba1423201ae16fe8

Authored by Jürgen Knödlseder
1 parent a024c5c8

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,6 +46,7 @@ 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
51 52 src/ctbin/ctbin
... ...
configure.ac
... ... @@ -920,6 +920,7 @@ AC_CONFIG_FILES([Makefile
920 920 test/test_cscripts.sh
921 921 pyext/Makefile
922 922 pyext/setup.py
  923 + pyext/ctools/__init__.py
923 924 caldb/Makefile
924 925 models/Makefile
925 926 examples/Makefile
... ...
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
... ...