aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/Makefile.am
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-06-09 10:38:50 +0000
committerJustus Winter <[email protected]>2016-06-16 12:07:41 +0000
commit7eef399d89d4c3877cb795ed5ba45ecb241e67be (patch)
tree288b45feafce4887c6b4153f0088da874e7c611e /lang/python/Makefile.am
parentpython: Fix exception leak. (diff)
downloadgpgme-7eef399d89d4c3877cb795ed5ba45ecb241e67be.tar.gz
gpgme-7eef399d89d4c3877cb795ed5ba45ecb241e67be.zip
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 <[email protected]>
Diffstat (limited to 'lang/python/Makefile.am')
-rw-r--r--lang/python/Makefile.am5
1 files changed, 3 insertions, 2 deletions
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