[Build-common-hackers] Bug#577580: use of cdbs_python_build_versions forbids both arch and indep Python packages from the same source

Jonas Smedegaard dr at jones.dk
Mon Apr 12 23:26:24 UTC 2010


severity 577580 wishlist
retitle 577580 Please have python-distutils support multiple libs packages
thanks


Hi Yaroslav,

On Mon, Apr 12, 2010 at 04:37:11PM -0400, Yaroslav Halchenko wrote:

>per Jonas request, filing a fresh bug report...  two packages of mine 
>FTBFS using recent cdbs version while they were building just fine 
>using previous versions.

Thanks.

Just the subject is enlightening: I now understand that this is an issue 
of arch-all and arch-any from same source.  Thanks for clarifying!



>Yes, someone could call my packaging "dirty" since it got a bit 
>elaborate in an attempt to allow arch-dependent -lib packages using 
>cdbs.  I am aware of the fact that it is calling python setup.py 
>install twice (for all supported versions for arch -lib package, and 
>once for main package for main version),

It is not that (in itself) that you call setup-py twice, but more 
generally that you seem to twist python-distutils.mk into doing 
something not yet supported: Handle multiple libraries.

DEB_PYTHON_MODULE_PACKAGES was introduced in cdbs 0.4.54, resolving only 
to a single package by default, and with the following comment in the 
NEWS entry:

> As its name indicates, the new variable may support multiple Python 
> packages in the future.


>and such approach worked fine for quite a while.  But I do consider 
>that the cdbs either needs explicitely to allow for automagic handling 
>of -lib arch packages or not to rely on the colliding 
>$(cdbs_python_build_versions).

I suspect that it only worked in the past because a single version was 
supported (due to your limiting to at least 2.5 and Debian only 
relatively recently introducing 2.6).


I'd be happy to work on improving cdbs to support packages like these, 
but don't expect this to be solved fast.

Until cdbs python-distutils.mk gains multilib support, I suggest to only 
use it for the arch-any lib (as that is the trickiest to do right) and 
avoid cdbs variables for the arch-all one.

Oh, and please only declare DEB_PYTHON_MODULE_PACKAGES (not 
DEB_PYTHON_MODULE_PACKAGE too, and even with a different content - that 
is certainly asking for trouble!).


Kind regards,

  - Jonas

-- 
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20100413/2a9b3826/attachment.pgp>


More information about the Build-common-hackers mailing list