needs to build a python 3.4 extension

Bug #1272364 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Stéphane Graber
Trusty
Fix Released
High
Stéphane Graber

Bug Description

Current lxc fails when running tests with Python 3.4:

  http://people.canonical.com/~pitti/tmp/autopkgtest-py34/fail/py34-lxc/results/

  File "/usr/bin/lxc-ls", line 35, in <module>
    import lxc
  File "/usr/lib/python3/dist-packages/lxc/__init__.py", line 25, in <module>
    import _lxc
ImportError: No module named '_lxc'

The package currently only ships an extension for Python 3.3.

Tags: python3.4
Revision history for this message
Stéphane Graber (stgraber) wrote :

I don't really have time to look into this, however python3-lxc does build fine with python3.4.

It should be possible to build the python3 bits with another configure call + "make -C src/python-lxc", however please note that the LXC packaging must work with precise, quantal, raring, saucy and trusty, so hardcoding 3.4 in there isn't an option.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 1272364] Re: needs to build a python 3.4 extension

Stéphane Graber [2014-01-24 16:24 -0000]:
> It should be possible to build the python3 bits with another configure
> call + "make -C src/python-lxc", however please note that the LXC
> packaging must work with precise, quantal, raring, saucy and trusty, so
> hardcoding 3.4 in there isn't an option.

Right, this is a quite well understood process. debian/rules ought to
iterate over "py3versions -s", and in this case do the extra
multi-builds for everything but the default version (py3versions -d).

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

lets do that next week

Changed in lxc (Ubuntu Trusty):
assignee: nobody → Stéphane Graber (stgraber)
status: New → Triaged
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

fixed, but miss-typed the bug number

  * Build python3 extension for all supported python versions. LP: #127236.
  * Build-conflict with lua5.2*, the packaging is not ready for it.

Changed in lxc (Ubuntu Trusty):
status: Triaged → 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.