From 7eef399d89d4c3877cb795ed5ba45ecb241e67be Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 9 Jun 2016 12:38:50 +0200 Subject: python: Get version information from the build system. * configure.ac: Generate 'setup.py' and 'version.py'. * lang/python/Makefile.am: Use generated setup script. * lang/python/pyme/version.py: Turn it into a template, and get version information from the build system. Also drop some variables. * lang/python/setup.py: Likewise. This way we can avoid importing the version module, which is frowned upon and actually caused a problem. Signed-off-by: Justus Winter --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index b84b04bc..42695403 100644 --- a/configure.ac +++ b/configure.ac @@ -775,7 +775,10 @@ AC_CONFIG_FILES(lang/qt/tests/Makefile) AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd]) AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([lang/qt/doc/Doxyfile])]) AC_CONFIG_FILES(lang/qt/doc/Makefile) -AC_CONFIG_FILES([lang/python/Makefile lang/python/tests/Makefile]) +AC_CONFIG_FILES([lang/python/Makefile + lang/python/setup.py + lang/python/pyme/version.py + lang/python/tests/Makefile]) AC_OUTPUT echo " -- cgit v1.2.3