Mike Meyer | 12 May 01:26

Re: install lxml 2.0.5 on Mac OS X Leopard - why is it so hard?

On Sun, 11 May 2008 18:00:26 -0500
"Kumar McMillan" <kumar.mcmillan <at> gmail.com> wrote:

> On Sun, May 11, 2008 at 1:48 PM, Mike Meyer <mwm <at> mired.org> wrote:
> > On Sun, 11 May 2008 09:01:01 +0200
> > Stefan Behnel <stefan_ml <at> behnel.de> wrote:
> >
> >> you ask why this is so hard? Simple answer: because no-one has contributed a
> >> way so far to make it easier.
> >
> > Gee, I had no trouble at all doing this last week (the release of
> > Oracle library bits for Intel OS-X means it's now desirable). I
> > installed macports, did a self-update, then installed py25-lxml.  It
> > installed python2.5.2 and the versions of libxml2 and libxslt that
> > were in macports as part of the process.
> 
> The build of lxml doesn't fail and you probably won't see any errors
> unless you are using xpath.  In fact, running selftest.py after
> building passes for me (I'm not sure if that runs all tests or not)
> but I do get a consistent segfault in my program.

Well, we make fairly heavy use of xpath (we use it to extract millions
of records/minute in our ETL system, plus provide default attributes
in the xml config file), so if it's a problem, I'm sure I'll see
it. The few tests I've run so far worked fine. Care to provide an
example that breaks?

> Looking at the macport of py25-lxml I don't see any flags that would
> indicate they have accomplished statically linking the new libxml
> libs.  I don't like to use ports of python modules because
> /opt/local/bin/python doesn't mix well with a Framework python
> installation from my experience.

That's always a problem when you start building your version of
languages in the base system - you probably can't use the
platform-specific modules that are in the base systems language
installation. I can't get to any of the rpm-related python modules on
RHEL with my custom python installed. Fortunately, I don't need access
to either the rpm libraries or the mac Python frameworks in my
applications.

    <mike
--

-- 
Mike Meyer <mwm <at> mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Gmane