[Distutils] buildout and issues with dependencies and patch.
Jim Fulton
jim at zope.com
Tue Jul 6 15:21:32 CEST 2010
On Mon, Jul 5, 2010 at 11:30 AM, Xavier Ordoquy <xordoquy at linovia.com> wrote:
> Hi,
>
> I am currently trying to get buildout as my default deploy system however, I'm facing two issues for which I don't understand buildout well enough and for which I haven't found answers on the net.
>
> My first issue is I need to get both numpy and matplotlib installed.
> So I added both to the eggs section of buildout.
> numpy seems to get downloaded and installed fine, however, matplotlib won't. The latest complains numpy isn't installed.
> At this point, my guesses - after investigations - are that matplotlib checks numpy availability by importing it. However, as buildout has not set the numpy egg in the path, matplotlib fails and ends.
> I have noticed there's a way to set headers and library path for compilers but I can't find a way to set the numpy's egg path, even when I move matplotlib to a section with the egg receipe.
>
> Does someone know a way to get numpy eggs prepend to the paths so
that matplotlib can detect it ?
matplotlib is problematic for buildout due to the introspection it
does. I haven't found a good solution. What I've done in the past is
to make a not-so-clean Python (or virtualenv) that has numpy installed
and then use buildout with that to install matplotlib.
(Another work-around occurs to me, which I will try and report back. :)
> My second question is, I also want to install pysvn. This package
needs a patch to be setuptool friendly. I would like to know if
there's a simple way within the buildout.cfg file to apply a patch
to a package before it gets eggified ?
I think there are some recipes that apply patches. I haven't tried
them myself.
http://pypi.python.org/pypi?%3Aaction=search&term=buildout+recipe+patch
Jim
--
Jim Fulton
More information about the Distutils-SIG
mailing list