[hfst] 01/01: Really apply last patch

Kartik Mistry kartik at moszumanska.debian.org
Wed Feb 10 08:26:23 UTC 2016


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

kartik pushed a commit to branch master
in repository hfst.

commit 3e8e985c1dd41b2b705876526a4fceed926c4e5e
Author: Kartik Mistry <kartik.mistry at gmail.com>
Date:   Wed Feb 10 13:55:20 2016 +0530

    Really apply last patch
---
 debian/rules | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1396782..83da7f3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,8 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
 endif
 
+build3vers := $(shell py3versions -sv)
+
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
@@ -20,13 +22,19 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	./scripts/generate-cc-files.sh
 	$(MAKE) -j$(NUMJOBS) || $(MAKE) -j$(NUMJOBS) || $(MAKE)
-	cd $(CURDIR)/python && python3 setup.py build_ext && strip --strip-unneeded build/*/*.so
+	cd $(CURDIR)/python && python setup.py build_ext
+	set -e && for i in $(build3vers); do \
+	  cd $(CURDIR)/python&&i setup.py build_ext &&  strip --strip-unneeded build/*/*.so
+	done
 
 override_dh_auto_test:
 	# Skip, as it breaks in various unpredictable ways
 
 override_dh_auto_install:
 	dh_auto_install
-	cd $(CURDIR)/python && python3 setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp
+	cd $(CURDIR)/python && python setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp
+	set -e && for i in $(build3vers); do \
+	  cd $(CURDIR)/python && python$$i setup.py install --no-compile --prefix /usr --install-layout deb --root $(CURDIR)/debian/tmp;  \
+	done
 	find $(CURDIR) -type f -name '*.pyc' -exec rm -f '{}' \;
 	find $(CURDIR) -type f -name '*.pyo' -exec rm -f '{}' \;

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



More information about the debian-science-commits mailing list