Building python modules with a non-default version
Alejandro Pulver
alejandro at varnet.biz
Thu Oct 25 18:06:51 EDT 2007
On Tue, 23 Oct 2007 22:51:53 -0400
Joe Marcus Clarke <marcus at marcuscom.com> wrote:
> > I understand the problem. Then I guess INDEX is used for calculating
> > dependencies on the Tinderbox (like the pretty-print-*-list targets in
> > bsd.port.mk) and pointyhat, because it works when building in a normal
> > environment.
>
> INDEX is used to build the Makefile on pointyhat, but not in Tinderbox.
> However, Tinderbox uses a similar algorithm to pointyhat which allows
> for sparse ports trees. Both systems _should_ produce identical results
> in terms of builds and packages.
>
> >
> > If my guess was correct then the solution could be to generate the
> > dependencies without INDEX in Tinderbox and pointyhat.
>
> Given the environment which this works, I do not see a good solution
> that will produce consistent, well-checked packages. That is, there is
> no way to do true dependency and plists checking if we do not calculate
> dependencies on a per-port basis.
>
> It seems the best solution to your problem, at least for Tinderbox, is
> to change the default Python version in the Build environment. This
> won't help on pointyhat, but perhaps the port should be marked
> NO_PACKAGE there.
>
> Joe
>
Thanks for the explanation (also to Ade), then I will add something
like:
.if defined(PACKAGE_BUILDING) && \
${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}
IGNORE= needs Python ${PYTHON_VERSION} as default on pointyhat/TB
.endif
I think it should be marked as IGNORE since NO_PACKAGE is for ports
that build but the package should not be created for some reason, and
in this case it won't build. Also BROKEN would be for a
temporary/fixable failure.
First I was surprised with the use of depend_args to pass
PYTHON_VERSION and was planning to add something similar to bsd.lua.mk,
but I will have to reconsider it.
Best Regards,
Ale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://marcuscom.com/pipermail/tinderbox-list/attachments/20071025/1594cddd/attachment.bin
More information about the tinderbox-list
mailing list