building lxml on OSX 10.9 (Mountain Lion)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Installing lxml using easy_install fails on OSX 10.8 (Mountain Lion)
command line:
$ STATIC_DEPS=true sudo easy_install --allow-
problem:
1) buildlibxml.py hardcodes the '-arch' arguments used on OSX, and tries to build a 'ppc', 'i386', 'x86_64' fat binary
on OSX 10.6 or later. This doesn't work on OSX 10.8 (or recent Xcode versions on 10.7) because the compiler doesn't
support PPC at all.
Would you be interested in a patch that extracts the '-arch' arguments and deployment target from the compiler flags
in distutils' configuration?
2) At least the most recent version of libxml2 (2.9.0) does not build at all on OSX 10.8 because it tries to reinitialize a
pthread_once_t variable in threads.c and this causes a compiler error on OSX 10.8.
I'm mentioning this too ensure that this report describes the entire problem, I'll file a bug with the libxml2 project for this.
> Would you be interested in a patch that extracts the '-arch' arguments
> and deployment target from the compiler flags in distutils' configuration?
Sure. Please provide a pull request on github.