On Sun, Sep 11, 2011 at 09:42:28PM +0100, Julian Gilbey wrote: > Also, the python_distutils script (called with -Spython_distutils) > barfs as well; perhaps a parallel python3_distutils could be created?
Attached is a patch for python3_distutils from python_distutils. Julian
--- /usr/share/perl5/Debian/Debhelper/Buildsystem/python_distutils.pm 2011-08-23 20:29:42.000000000 +0100 +++ /usr/share/perl5/Debian/Debhelper/Buildsystem/python3_distutils.pm 2011-09-11 21:48:51.000000000 +0100 @@ -5,7 +5,7 @@ # © 2008-2009 Modestas Vainius # License: GPL-2+ -package Debian::Debhelper::Buildsystem::python_distutils; +package Debian::Debhelper::Buildsystem::python3_distutils; use strict; use Cwd (); @@ -117,14 +117,14 @@ # Then, run setup.py with each available python, to build # extensions for each. - my $python_default = `pyversions -d`; + my $python_default = `py3versions -d`; $python_default =~ s/^\s+//; $python_default =~ s/\s+$//; - my @python_requested = split ' ', `pyversions -r 2>/dev/null`; + my @python_requested = split ' ', `py3versions -r 2>/dev/null`; if (grep /^\Q$python_default\E/, @python_requested) { @python_requested = ( grep(!/^\Q$python_default\E/, @python_requested), - "python", + "python3", ); }