[lxml-dev] lxml Mac installation idea
Mark Bestley
lxml at bestley.co.uk
Mon Nov 17 20:26:44 CET 2008
Stefan Behnel <stefan_ml at behnel.de> writes:
> Hi,
>
> Guntsche Michael wrote:
>> Here the last incarnation of my patch. I got rid of setting the
>> environment variables and deleting them afterwards.
>> Should have done it like this in the first place.
>
> Thanks a bunch. I rewrote the patch somewhat to restrict the changes to
> MacOS. If I didn't break it by doing that, the current trunk should work
> out-of-the-box now, if you pass "--static-deps" to setup.py, or set
> "STATIC_DEPS=true" in your env variables.
>
> Anyone wants to give it a try?
>
I have tried with mixed sucess
Failed with Apple Python
In the 'normal setup.py' bit
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o xmllint xmllint.o ./.libs/libxml2.a -lpthread -lz /usr/lib/libiconv.dylib -lm
ld: library not found for -lcrt1.10.5.o
collect2: ld returned 1 exit status
Exception: Command "make" returned code 2
If the -isysroot /Developer/SDKs/MacOSX10.4u.sdk is removed then it worked
worked with
python.org 2.6 version dual architecture
macports single arcitecture python
I have also tested these two with no isysroot and that worked.q
Now I don't understand how the parameters got passed through to the
setup.py as Stefan's code only passes it to the configure builds. It
seems like the environment is globally set
Also should the '--disable-dependency-tracking' parameter to
configure_cmd be only for darwin?
--
Mark
More information about the lxml-dev
mailing list