PyBuild available in raring
Scott Kitterman
ubuntu at kitterman.com
Fri Jan 25 22:43:50 UTC 2013
On Friday, January 25, 2013 10:07:35 AM Barry Warsaw wrote:
> On Jan 25, 2013, at 02:45 PM, Colin Watson wrote:
> >On Fri, Jan 25, 2013 at 06:21:19PM +0400, Dmitry Shachnev wrote:
> >> I want to announce that my yesterday’s python3-defaults upload[1] made
> >> new “PyBuild” tool (developed by Piotr Ożarowski) available in raring.
> >>
> >> It allows one to easily build packages for both Python 2 and Python 3
> >> (and also PyPy) by just passing `--buildsystem=pybuild` to debhelper
> >> commands, and is very configurable (it guesses supported interpreter
> >> versions by looking at Build-Depends).
> >
> >This looks like a big improvement, thanks. However, is it intentional
> >that it appears to install Python 3 modules to
> >/usr/lib/python3.X/dist-packages/ by default, rather than
> >/usr/lib/python3/dist-packages/?
>
> I haven't looked at the details yet, but I think this should be considered a
> bug. As of Python 3.2, there are no collision problems with lumping all
> Python packages under the same shared location. Even shared libraries
> won't collide.
>
> There's one case where this might make sense though. Say package `foo` is
> only compatible with Python 3.2 but hasn't yet been ported to 3.3. In that
> case, it might make sense to install that under /u/l/python3.2/d-p instead
> of /u/l/python3/d-p. This has come up before in discussions (with no
> wonderful solution btw), but I suspect that 1) it will be fairly rare; 2)
> since this is really a problem with upstream, effort is better spent
> getting upstream ported to all supported Python 3's. Given Python's
> effectively 18 month release cycle, this hopefully won't come up very
> often.
There's another case as well. If there is pure python code that is python3
version specific. This is rare, but exists. To make sip4/python-qt4 support
multiple python versions I had to do some really unfortunate and painful
things to make it work. It would be nice if we had a general solution for
this.
Scott K
More information about the ubuntu-devel
mailing list