[Build-common-hackers] Bug#537373: cdbs: Use --install-layout=deb for Python
Martin Pitt
martin.pitt at ubuntu.com
Fri Jul 17 15:42:35 UTC 2009
Package: cdbs
Version: 0.4.58
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu jaunty ubuntu-patch
Hello,
Matthias Klose announced some required Python packaging changes a
while ago [1] which will become relevant once python2.6 goes from
experimental to unstable and becomes the default.
In particular, Python packages should now be built with
--install-layout=deb, since from 2.6 on, the default will be
/usr/local (see referenced announcement for details).
This is a no-op for older python versions, but 2.4 and 2.5 will support the
option as well for consistency:
python2.5 (2.5.3-1~exp1) experimental; urgency=low
* New upstream version.
* Add an option --install-layout=deb, which is ignored for 2.5.
* Don't include extensions in the package, which did fail to build.
-- Matthias Klose <doko at debian.org> Sun, 21 Dec 2008 07:53:50 +0100
python2.4 (2.4.6-2~exp1) experimental; urgency=low
* Add an option --install-layout=deb, which is ignored for 2.5.
-- Matthias Klose <doko at debian.org> Sun, 21 Dec 2008 08:10:57 +0100
This cdbs patch supplies --install-layout=deb by default. It has to do
a dirty trick, though: It renames dist-packages/ (the new default for
--install-layout=deb) to site-packages/ again, so that packages which
expect setup.py to install to site-packages/ and depend on that in
their dh_install files don't break. dh_py* will take care of the final
renaming.
Obviously this shouldn't be applied to cdbs before above python
versions go from experimental to unstable. (Matthias, is anything
holding this back? After all, these changes should be quite safe for
unstable).
But I file them already to give you an early warning, and to discuss
the change, so that we have it ready when the python 2.6 switch is
thrown.
We have this change in Ubuntu since 9.04, and it has proven to work as
expected.
Thanks,
Martin
[1] http://lists.debian.org/debian-devel/2009/02/msg00431.html
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20090717/e413eac7/attachment.pgp>
More information about the Build-common-hackers
mailing list