[Build-common-hackers] Howto use CDBS with auto tools and Python?
W. Borgert
debacle@debian.org
Fri, 12 Mar 2004 22:15:26 +0100
Hi,
I like to build a package with CDBS that is made using GNU auto tools.
The debian/rules has only two relevant lines:
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
The package contains not only C, but also Python code, so Makefile.am
and configure.ac have the usual entries python_PYTHON and
AM_PATH_PYTHON. So far, everything works fine, but by default, the
package contains .pyc and .pyo files under site-packages/ what is not
what you want to have in a Debian package. A workaround is to
explicitly list all *.py files in the debian/*.install files, but
that is cumbersome and leads to another problem: No .pyc or .pyo
files are created at package installation time. I assume, that it
would be enough to call dh_python somewhere, but how exactly? And
shouldn't that be done by CDBS automatically? TIA!
Cheers, WB