Commit 286dcbd0c24563437c1cc2a8f96d731daf694525

Authored by Jürgen Knödlseder
1 parent 0e53abdb

Add __version__ variable to cscripts.

.gitignore
... ... @@ -49,6 +49,7 @@ pyext/setup.py
49 49 pyext/ctools/__init__.py
50 50 pyext/ctools/tools.py
51 51 pyext/ctools/tools_wrap.cpp
  52 +cscripts/__init__.py
52 53 src/ctbin/ctbin
53 54 src/ctlike/ctlike
54 55 src/cttsmap/cttsmap
... ...
configure.ac
... ... @@ -921,10 +921,11 @@ AC_CONFIG_FILES([Makefile
921 921 pyext/Makefile
922 922 pyext/setup.py
923 923 pyext/ctools/__init__.py
  924 + cscripts/__init__.py
  925 + cscripts/Makefile
924 926 caldb/Makefile
925 927 models/Makefile
926 928 examples/Makefile
927   - cscripts/Makefile
928 929 ctools.pc
929 930 testconf.sh],
930 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
... ...