From 72d3ed35317823889539cb56b26a927724beed40 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 3 Dec 2015 11:37:17 +0100 Subject: [PATCH] Add __version__ variable to GammaLib Python module. --- pyext/setup.py.in | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/pyext/setup.py.in b/pyext/setup.py.in index 5a3423f..f60da80 100644 --- a/pyext/setup.py.in +++ b/pyext/setup.py.in @@ -257,6 +257,11 @@ def test(): from gammalib.tests import test_python test_python.test(installed=True) """) + + # Add version + file.write("\n__version__ = '@PACKAGE_VERSION@'\n") + + # Close file file.close() # Set data files to install. -- libgit2 0.21.4