[Bug 53568] Re: [Bug 53568] Re: [Edgy] python-distutils class assumes pycentral if DEB_PYTHON_SYSTEM not defined
ressu at ressukka.net
Fri Jul 21 07:12:47 UTC 2006
Jérémie Corbier wrote:
> Therefore if you try to build a package following the new python policy
> (e.g. if there's a debian/pycompat file) and without defining
> DEB_PYTHON_SYSTEM the build will fail. If cdbs can't find a clue about
> whether the package follows the new or the old policy and if
> DEB_PYTHON_SYSTEM is not defined then the package will be built
> following the old policy (and it will display a big fat warning ;))
Actually, this is wrong.
It will display a big fat warning (as it should) and it attempts to
build without the new system, but even still it will call dh_pycentral.
if you take a look at the patch, it will become quite obvious why this
happens. The cdbs makefile only tests if DEB_PYTHON_SYSTEM matches
pysupport and assumes that pycentral is the only other logical choice
without taking in to account that there might be cases where this if
clauses are hit without DEB_PYTHON_SYSTEM being defined.
So, even if cdbs is supposed to fall back to building with the old
system, it will build with an uninitialized pycentral support instead.
[Edgy] python-distutils class assumes pycentral if DEB_PYTHON_SYSTEM not defined
More information about the desktop-bugs