python-mkdebian: Support python3 projects

Bug #887699 reported by Michael Terry
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-distutils-extra (Ubuntu)
Triaged
High
Barry Warsaw

Bug Description

Currently, projects using python-mkdebian have to be Python2 based. It would be nice if it supported Python3 projects.

A few things I've noticed that would have to change:
 * Don't simply call "python setup.py install_egg_info". Instead, detect which version to use (or make setup.py executable, then run it).
 * When writing debian/control, you'll have to decide whether to depend on python or python3.
 * If you switch to dh_python2, you'd have to consider dh_python3 too.
 * mod2package() and _get_pkg_from_path() currently check for "python-", but they should also check for "python3-".

I don't know if this is best done via a new python3-mkdebian or just have python-mkdebian detect which path to take.

Michael Terry (mterry)
Changed in python-distutils-extra (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
Martin Pitt (pitti)
summary: - Support python3 projects
+ python-mkdebian: Support python3 projects
Martin Pitt (pitti)
no longer affects: python-distutils-extra
Changed in python-distutils-extra (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Sebastien Bacher (seb128) wrote :

is there any news on that item? it's on the quantal tracker and blocking other work so it would be good to have an idea if that will happen this cycle or not

Revision history for this message
Barry Warsaw (barry) wrote :

<mterry> barry, it's OK. I assumed you weren't getting to it at this point.
         The deal is that it's blocking Quickly from supporting Python 3
         projects that users want to create (and we want to recommend them
         creating) [13:46]
<mterry> barry, we can coast another release with only supporting python2
         projects, but it should probably happen for 13.04, since we are
         getting out of step with what we ourselves recommend (python3) and
         what we are forced to recommend to app authors (python2)
<mterry> barry, though, in 13.04, we are looking at using pkgme instead, so
         maybe that bug becomes irrelevant?

So, postponing to 13.04 and putting it on the critical path, unless we switch to pkgme, in which case *it's* support for Python 3 is on the critical path.

Changed in python-distutils-extra (Ubuntu):
milestone: none → later
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.