PyBuild available in raring
Barry Warsaw
barry at ubuntu.com
Fri Jan 25 15:07:35 UTC 2013
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.
>To reproduce, take germinate 2.12 and replace its debian/rules with:
>
> #! /usr/bin/make -f
> %:
> dh $@ --with python2,python3 --buildsystem=pybuild
>
>Then watch the build failure, preceded and caused by:
>
> dh_auto_install -O--buildsystem=pybuild
> ...
> running install
> running install_lib
> creating /«PKGBUILDDIR»/debian/tmp/usr/lib/python3.3
> creating /«PKGBUILDDIR»/debian/tmp/usr/lib/python3.3/dist-packages
I'll double check this and file a bug/patch unless someone beats me to it.
Cheers,
-Barry
More information about the ubuntu-devel
mailing list