[Build-common-hackers] Bug#587240: example

Steffen Möller steffen_moeller at gmx.de
Sun Jun 27 00:13:38 UTC 2010


Hi Jonas,

I run into this issue for everything that I package with python-central. The python-support-run packages don't seem to be
affected. When you look up to the patch a bit, you see that in only changes site-packages to dist-packages for the installation,
and only if the version of python is 2.6 or higher. The Debian Python Policy almost verbatim states this on
http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html section 1.5 "Module Path".

You asked for an example, well, I don't really want to show those publicly yet, but I ran into this (and wasted half a day (with
breaks) over it) while packaging python-nast (or should it be python-pynast?) that depends on python-cogent. You can see all the
files on
http://svn.debian.org/wsvn/debian-med/trunk/packages/python-nast/trunk/debian/#_trunk_packages_python-nast_trunk_debian_

Its control file looks like

Build-Depends: debhelper (>= 7), cdbs, python, python-central, python-cogent

and a rules file like

export DEB_PYTHON_SYSTEM=pycentral
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

so this is all rather minimalistic and if it does not work, then it must be the cdbs' fault by principle :)   I used this the
same way before for my tons of mgltools-* python packages - but this was for python 2.5 and I'll address those soon again since
they just don't work with 2.6.

All is compiled nicely with the cdbs as it comes, it also installs nicely, it just installs to /usr/lib/python2.6/site-packages
(great before, not for python 2.6) and not to /usr/lib/python2.6/dist-packages (great for 2.6).

Has this helped?

Many thanks for your quick reply

Steffen





More information about the Build-common-hackers mailing list