[Build-common-hackers] Howto use CDBS with auto tools and Python?
Fri, 9 Apr 2004 13:10:49 +0200
Quoting Colin Walters <email@example.com>:
> On Fri, 2004-03-12 at 16:15, W. Borgert wrote:
> > 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.
> Yeah, automake likes to compile Python itself at install-time. Maybe it
> should have an environment variable or something to disable that.
For now it's OK, to have a mypackage.install files mentioning
the *.py files only.
> > 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?
> I think you could just hook a call to dh_python into binary-install/foo,
> dh_python -pfoo
That's exacatly what I do, works fine. A "CDBS integrated
solution" would be appreciated anyhow.