building lxml on OSX 10.9 (Mountain Lion)

Bug #1056157 reported by Ronald Oussoren on 2012-09-25
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
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-hosts=lxml.de,*.python.org lxml==2.2.8

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.

scoder (scoder) wrote :

> 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.

scoder (scoder) wrote :

Note that there have been recent changes regarding the build on MacOS-X in the 3.0 pre-release series. Please try them to see if this works for you already.

Changed in lxml:
importance: Undecided → Wishlist
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers