[pyferret] 23/110: WIP: Try building both py2, py3

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jul 28 08:41:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch debian/master
in repository pyferret.

commit 6bdbae7155e43791349c6a4c915d4d5de6f0b7d8
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sat May 9 23:02:44 2015 +0100

    WIP: Try building both py2, py3
---
 debian/rules | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index bbb95f3..a49f92c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,9 @@ ARCH:=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 LIBDIR:=/usr/lib/$(ARCH)
 INSTALLDIR:=$(CURDIR)/debian/tmp
 
+PY2VERS:=$(shell pyversions -r)
+PY3VERS:=$(shell py3versions -r)
+
 override_dh_auto_build:
 	sed -e 's%@ARCH@%${ARCH}%' \
                 -e 's%@LIBDIR@%${LIBDIR}%' \
@@ -20,10 +23,11 @@ override_dh_auto_build:
 	cp site_specific.mk external_functions/ef_utility
 	cp debian/platform_specific.mk.debian .
 	cp debian/ef_utility/platform_specific.mk.debian external_functions/ef_utility/platform_specific.mk.debian
-	$(MAKE) HOSTTYPE=debian all
 
 override_dh_auto_install:
-	$(MAKE) HOSTTYPE=debian install
+	for p in $(PY2VERS) $(PY3VERS) ; do \
+		$(MAKE) HOSTTYPE=debian PYTHON_EXE=$$p clean all install ; \
+		done
 	# libpyferret.so needs a link because its linked by externally loaded modules
 	dh_link -p python-ferret /usr/lib/python2.7/dist-packages/pyferret/libpyferret.$(ARCH).so $(LIBDIR)/libpyferret.so
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyferret.git



More information about the debian-science-commits mailing list