[Distutils] Problem using zc.recipe.cmmi to build Python

kiorky kiorky at cryptelium.net
Sat Oct 3 17:16:36 CEST 2009


You can look at :
http://git.minitage.org/git/minitage/buildouts/dependencies/python-2.6.3/tree/buildout.cfg

This buildout build a python with buildout as a "minitage system dependency".

Note that the url points to a recent SVN snapshot as there are many ox
snowleopard related bugs (blockers) fixed in trunk.

This buildout uses minitage.recipe.cmmi which is suported and well tested ...
You have hooks available at each stage of the build sequence, and many more
features that in zc.recipe.cmmi. Options documentation is shared between the
".cmmi" and the ".common" recipe.

IMO, you must remove from that the minitage-flags.diff bits at it's a way for me
o force compilation of all extensions module i know i will be able to compile
inside a minitage environment for this buildout, you are DONE.

For your setup with cStringIO commented, you must be on an unsupported
environment, this module must be always be compiled (triggered via setup.py)
look at your lib/python-2.6/lib-dynload if there is any "cStringIO.so".

See [1].

[1] -
http://code.python.org/hg/branches/release2.6-maint/annotate/8fcbbeb5eabb/setup.py#l311
[2] - http://pypi.python.org/pypi/minitage.recipe.cmmi
[3] - http://pypi.python.org/pypi/minitage.recipe.common


Kent Tenney a écrit :
> Howdy,
> 
> In pursuit of a buildout for my core environment, I try the following:
> 
> [python-2.6.3]
> recipe = zc.recipe.cmmi
> url = http://www.python.org/ftp/python/2.6.3/Python-2.6.3rc1.tgz
> ...
> 
> make fails with
> ImportError: No module named cStringIO
> because ./configure creates a Modules/Setup which says
> #cStringIO cStringIO.c
> 
> if I uncomment that line the make is fine.
> 
> I haven't found a way to tell $:./configure or $:make to do that,
> zc.recipe.cmmi doesn't seem to provide a hook between configure and make.
> 
> If someone can tell me to fix this with options or environment I'm done.
> 
> If not, I welcome advice on alternatives to zc.recipe.cmmi,
> (which I would consider the 'standard' solution.(darn you Shuttleworth
> for co-opting the word 'canonical' :-)))
> 
> 
> - comb through the many xx.xx.cmmi recipes
>   (without a sense of associated quality or support level)
> 
> - pick a xx.xx.command recipe and write a part which does what I want
> 
> - write my own 'recipe.build-interp'
> 
> Thanks,
> Kent
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

-- 
--
Cordialement,
KiOrKY
GPG Key FingerPrint: 0x1A1194B7681112AF


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20091003/c39df373/attachment.pgp>


More information about the Distutils-SIG mailing list