[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#571274: brltty: FTBFS with Python 2.6 as default version



* Samuel Thibault <sthibault@debian.org>, 2010-02-27, 14:17:
| $ find debian/tmp/ -type f -path '*python*'
| debian/tmp/usr/local/lib/python2.6/dist-packages/Brlapi-0.5.4.egg-info
| debian/tmp/usr/local/lib/python2.6/dist-packages/brlapi.so

Err, looks like an issue with the setup and Extension packages. All
brltty does is to run

python setup.py --quiet install --skip-build --record installed-files --root the_install_root

With python2.5, this installs in

the_install_root/usr/lib/python2.5/site-packages/brlapi.so

while with python2.6, this installs in

the_install_root/usr/local/lib/python2.6/dist-packages/brlapi.so

Is that an expected change of behavior in python2.6?

Yes, that's expected: http://lists.debian.org/debian-devel/2009/02/msg00431.html ("Local installation path").

If have noticed that there is a --install-layout option to which we can
pass deb instead of the new value unix.  Is that what has changed and
that we should just use?

Yes. Note however, that this option is Debian-specific and not available in python releases prior to 2.5.4.

A more (back)portable way to handle this is to conditionally include /usr/share/python/python.mk and use $(py_setup_install_args).

--
Jakub Wilk

Attachment: signature.asc
Description: Digital signature


Reply to: