aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/Makefile.am
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-14 08:22:07 +0000
committerJustus Winter <[email protected]>2016-09-14 10:18:15 +0000
commit24b4162d908b48a92660020be0b776c2874fb05a (patch)
treefcdf0bd5107b5c268f10a9bc0ffa5cf1e616297a /lang/python/Makefile.am
parentpython: Import from __future__ to align behavior of Python 2.7. (diff)
downloadgpgme-24b4162d908b48a92660020be0b776c2874fb05a.tar.gz
gpgme-24b4162d908b48a92660020be0b776c2874fb05a.zip
python: Build for both Python2 and Python3.
* NEWS: Update. * configure.ac: Check for multiple Python versions. * lang/python/Makefile.am: Build and install for both Python versions. * lang/python/tests/Makefile.am: Test both versions. * lang/python/tests/run-tests.py: New test runner. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'lang/python/Makefile.am')
-rw-r--r--lang/python/Makefile.am18
1 files changed, 13 insertions, 5 deletions
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 8e18dab3..9ec9c4aa 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -54,8 +54,10 @@ copystamp: $(COPY_FILES) $(COPY_FILES_PYME)
touch $@
all-local: copystamp
- CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
- $(PYTHON) setup.py build --verbose
+ for PYTHON in $(PYTHONS); do \
+ CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
+ $$PYTHON setup.py build --verbose ; \
+ done
dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc: copystamp
CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
@@ -87,10 +89,16 @@ clean-local:
fi
install-exec-local:
- $(PYTHON) setup.py install \
+ rm -f install_files.txt
+ for PYTHON in $(PYTHONS); do \
+ $$PYTHON setup.py install \
--prefix $(DESTDIR)$(prefix) \
- --record $(DESTDIR)$(pythondir)/pyme/install_files.txt \
- --verbose
+ --record files.txt \
+ --verbose ; \
+ cat files.txt >> install_files.txt ; \
+ rm files.txt ; \
+ done
+ mv install_files.txt $(DESTDIR)$(pythondir)/pyme
uninstall-local:
xargs <$(DESTDIR)$(pythondir)/pyme/install_files.txt -- rm -rf --