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 --- lang/python/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lang/python/Makefile.am') diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am index 46f45d00..2c84f2b5 100644 --- a/lang/python/Makefile.am +++ b/lang/python/Makefile.am @@ -40,7 +40,8 @@ gpgme_wrap.c pyme/pygpgme.py: gpgme.i errors.i gpgme.h copystamp $< all-local: gpgme_wrap.c pyme/pygpgme.py copystamp - CFLAGS="$(CFLAGS)" $(PYTHON) $(srcdir)/setup.py build --verbose + CFLAGS="$(CFLAGS)" \ + $(PYTHON) setup.py build --verbose clean-local: rm -rf -- build gpgme.h errors.i gpgme_wrap.c pyme/pygpgme.py \ @@ -50,7 +51,7 @@ clean-local: fi install-exec-local: - $(PYTHON) $(srcdir)/setup.py install \ + $(PYTHON) setup.py install \ --prefix $(DESTDIR)$(prefix) \ --record $(DESTDIR)$(pythondir)/pyme/install_files.txt \ --verbose -- cgit v1.2.3