[pyferret] 101/110: Patch from Simon Quigleyo ensure we are py3-version neutral. Closes: #869235

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jul 28 08:42:25 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 577468983de0047f1a3c084ea92f3b9f8585906e
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Sat Jul 22 16:44:17 2017 +0100

    Patch from Simon Quigleyo ensure we are py3-version neutral. Closes: #869235
---
 debian/changelog | 7 +++++++
 debian/rules     | 3 ++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7af2110..212887e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pyferret (7.1.1.beta-2) UNRELEASED; urgency=medium
+
+  * Patch from Simon Quigleyo ensure we are py3-version neutral.
+    Closes: #869235
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Sat, 22 Jul 2017 16:43:34 +0100
+
 pyferret (7.1.1.beta-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index 39fef76..16e7a62 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,7 @@ INSTALLDIR:=$(CURDIR)/debian/tmp
 
 PY2:=$(shell pyversions -d)
 PY3:=$(shell py3versions -d)
+PY3nodot:=$(shell py3versions -dv | tr -d '.')
 
 override_dh_auto_build:
 	cp debian/platform_specific.mk.debian .
@@ -34,7 +35,7 @@ override_dh_auto_install:
 	mkdir -p $(INSTALLDIR)/lib/$(PY3)
 	ln -s $(CURDIR)/install/lib/$(PY2)/site-packages/pyferret/libpyferret.so \
 		$(INSTALLDIR)/lib/$(PY2)/libpyferret.so
-	ln -s $(CURDIR)/install/lib/$(PY3)/site-packages//pyferret/libpyferret.cpython-35m-$(ARCH).so \
+	ln -s $(CURDIR)/install/lib/$(PY3)/site-packages//pyferret/libpyferret.cpython-$(PY3nodot)m-$(ARCH).so \
 		$(INSTALLDIR)/lib/$(PY3)/libpyferret.so
 	# Build and install 
 	# Horrible hack breaks The Debian Way. I'm doing the build in the 'install' phase, as i'm installing into debian/tmp

-- 
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