[Python-modules-team] Bug#905261: pythonmagick: remove hack that prevents building C extension for all supported versions of python

Michael Hudson-Doyle mwhudson at debian.org
Thu Aug 2 10:09:46 BST 2018


Source: pythonmagick
Version: 0.9.17-1
Severity: important
Tags: patch

Dear Maintainer,

I noticed as part of working on the Python 3.7 transition in Ubuntu that
pythonmagick's C extension was only built for the default version, not
both supported versions. I found the hack around minor versions in
debian/rules, took it out and that solved the problem :) I don't know
what problem the hack was solving but it no longer seems to be
necessary.

Simple patch attached.

Cheers,
mwh

-- System Information:
Debian Release: buster/sid
  APT prefers bionic-updates
  APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (400, 'bionic-proposed'), (100, 'bionic-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-29-generic (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru pythonmagick-0.9.17/debian/changelog pythonmagick-0.9.17/debian/changelog
--- pythonmagick-0.9.17/debian/changelog	2017-08-14 03:22:42.000000000 +1200
+++ pythonmagick-0.9.17/debian/changelog	2018-08-02 20:40:46.000000000 +1200
@@ -1,3 +1,10 @@
+pythonmagick (0.9.17-2) UNRELEASED; urgency=medium
+
+  * Remove hack preventing extensions for all Python versions from being
+    installed.
+
+ -- Michael Hudson-Doyle <mwhudson at debian.org>  Thu, 02 Aug 2018 20:40:46 +1200
+
 pythonmagick (0.9.17-1) unstable; urgency=medium
 
   * Bug fix: "FTBFS with python3.6 as a supported python3", thanks to
diff -Nru pythonmagick-0.9.17/debian/rules pythonmagick-0.9.17/debian/rules
--- pythonmagick-0.9.17/debian/rules	2017-08-14 03:22:42.000000000 +1200
+++ pythonmagick-0.9.17/debian/rules	2018-08-02 20:40:19.000000000 +1200
@@ -12,7 +12,7 @@
 # for ${version.major}+.4
 export PYBUILD_CONFIGURE_ARGS=dh_auto_configure $d -- \
 	--disable-silent-rules --disable-static \
-	--with-python-min-version={version.major}.4
+	--with-python-min-version={version.major}.{version.minor}
 export PYBUILD_BUILD_ARGS=dh_auto_build $d
 export PYBUILD_INSTALL_ARGS=dh_auto_install $d --destdir="{destdir}"
 export PYBUILD_TEST_ARGS=dh_auto_test $d


More information about the Python-modules-team mailing list