FFE: build a Python 3 package

Bug #641221 reported by Martin Pitt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-distutils-extra (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: python-distutils-extra

Yesterday I worked on making python-distutils-extra work with Python 3. For that, I needed a relatively small code change (port from the obsolete "compiler" module to the current "ast"), and do lots of changes to the test suite. Now this builds a new python3-distutils-extra package with Python 3 code, and the test suite (which is run during build) checks both the Python 2.6 and 3.0 variants.

The regression potential for the existing 2.6 module is low in my opinion, and of course I'll fix any reported regressions immediately.

The package was uploaded to Debian experimental yesterday, and is sitting in binary NEW now. I'll upload the same version with a ~maverick1 suffix for now, until we can sync again (which we usually do).

Note that python3-distutils-extra does not yet contain a python3-mkdebian script to produce fully dh_python3 compliant packages. However, the build system works fine, so if you have an existing package, or do the pckaging with dh_python3 manually, it will work.

Revision history for this message
Matthias Klose (doko) wrote :

I cannot give the FFe myself, but I think this is covered by #638537.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-distutils-extra - 2.22-1~maverick1

---------------
python-distutils-extra (2.22-1~maverick1) maverick; urgency=low

  * Upload of Debian experimental to maverick (LP: #641221)

python-distutils-extra (2.22-1) experimental; urgency=low

  [ Matthias Klose ]
  * setup.py: Drop import of "commands"; unused, and does not exist in
    python3.
  * Build a python3 package.

  [ Martin Pitt ]
  * DistUtilsExtra/command/build_extra.py: Use "in" operator instead of
    has_key(). It's more elegant and Python 3 compatible.
  * test/auto.py: Use Python3 compatible octal constant.
  * test/auto.py: Decode stdout/stderr result from subprocess from bytes to
    str, to work with Python3.
  * test/auto.py: Use whichever Python interpreter we got invoked with (using
    /proc/self/exe) instead of hardcoding "python". With that we can run the
    tests through python3 as well.
  * DistUtilsExtra/auto.py: Port from deprecated "compiler" module to current
    "ast" module.
  * test/auto.py: Only set PYTHONPATH if it isn't set already, so that we can
    override it from outside.
  * test/auto.py: Do not require that "setup.py clean -a" doesn't print
    anything to stderr; with Python 3.1 it now sends out warnings about
    nonexisting directories.
  * test/auto.py: Changed print statements to work with both Python 2 and 3.
  * DistUtilsExtra/command/build_extra.py: Drop unnecessary hashbang line.
  * test/auto.py: Filter out bogus errors about missing files which current
    Python 3 distutils spews out.
  * debian/rules: Run tests with python3 as well, against the installed
    modules in debian/python3-distutils-extra.
  * test/auto.py, debian/control: Use python{,3}-{pkg-resources,httplib2} as
    external test modules instead of -xdg and -dateutil, since the latter are
    not available for Python 3 yet.
  * debain/source/format: Switch to 3.0 (quilt), since we produce upstream
    tarballs and releases.
 -- Martin Pitt <email address hidden> Fri, 17 Sep 2010 13:42:32 +0200

Changed in python-distutils-extra (Ubuntu):
status: New → Fix Released
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.