Tanguy Ortolo, 2011-04-10 19:48 UTC+0200: > If it may help, here is a patch that works around that, though I doubt > it is very useful since it is really a dirty hack: it duplicates rules > (since these are :: rules, they cannot be overwritten but only > duplicated), removes a hardcoded file, etc. Yuck!
With the patch… :-) -- ,--. : /` ) Tanguy Ortolo <xmpp:tan...@ortolo.eu> <irc://irc.oftc.net/Elessar> | `-' Debian Maintainer \_
From 17aea08324c4968fe6e675bd1f630e9dad67cc3f Mon Sep 17 00:00:00 2001 From: Tanguy Ortolo <tanguy+deb...@ortolo.eu> Date: Sun, 10 Apr 2011 19:36:08 +0200 Subject: [PATCH] Dirty workaround Python 2.6 usage for 3.1 package. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.7.4.1" This is a multi-part message in MIME format. --------------1.7.4.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit --- debian/rules | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) --------------1.7.4.1 Content-Type: text/x-patch; name="0001-Dirty-workaround-Python-2.6-usage-for-3.1-package.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Dirty-workaround-Python-2.6-usage-for-3.1-package.patch" diff --git a/debian/rules b/debian/rules index 31802df..24e8e7a 100755 --- a/debian/rules +++ b/debian/rules @@ -34,3 +34,17 @@ CDBS_BUILD_DEPENDS_class_python-distutils_python = DEB_PYTHON_PRIVATE_MODULES_DIRS = --depends=python-dns DEB_INSTALL_EXAMPLES_ALL = examples/* + +debian/python-module-stampdir/python3-sleekxmpp:: + cd $(DEB_SRCDIR) && \ + python3 $(cdbs_python_setup_cmd) build \ + $(cdbs_python_build_args) + touch $@ + +install/python3-sleekxmpp:: + cd $(DEB_SRCDIR) && \ + rm "$(cdbs_python_destdir)/usr/lib/python3.1/site-packages/sleekxmpp/xmlstream/tostring/tostring26.py" && \ + python3 $(cdbs_python_setup_cmd) install \ + --root="$(cdbs_python_destdir)" \ + --install-purelib=$(call cdbs_expand_python_distutils_installdir,$(cdbs_curpythonpribinary)) \ + $(cdbs_python_install_args) --------------1.7.4.1--
signature.asc
Description: Digital signature