collective / buildout.python

Buildout all the Pythons
109 stars 47 forks source link

Build problems on OS X 10.11 #49

Closed hannosch closed 8 years ago

hannosch commented 8 years ago

I've added the darwin-elcapitan platform and things mostly work, though I'm not building Python 2.4 nor 2.5 anymore.

The one problem I ran into was openssl. Python compilation couldn't find openssl in the system. It seems Homebrew had the same problem and explicitly links to the homebrew provided openssl instead.

I did the same locally by expanding the environment for each Python version:

[python-2.6-build:default]
environment =
    LDFLAGS=-L/usr/local/opt/openssl/lib
    CPPFLAGS=-I/usr/local/opt/openssl/include

But didn't want to commit that into the default buildout, as it depends on an outside non-standard library.

There's also another issue with "stub libraries" mentioned at https://bugs.python.org/issue25136, with a patch. This only seems to be required if the command line tools aren't installed explicitly via xcode-select --install.

mauritsvanrees commented 8 years ago

@jladage This may give you some hints.

jladage commented 8 years ago

Hi @mauritsvanrees this helps for python2.6 and up, indeed. But python2.4 has problems with clang options. Maybe we should just drop python2.4 on El Capitan, old sites need to upgrade anyways since Plone 3 support is now drop because of the Plone 5 release.

jladage commented 8 years ago

With a git pull and brew link --force openssl I now have all pythons working.

aclark4life commented 8 years ago

Drop Python 2.4 :+1:

mauritsvanrees commented 8 years ago

Fixed by Hanno in f356afa96fb7fbda26af93eba0e562b95aeb26da.

aclark4life commented 8 years ago

Drop Python 2.4 :-1: (Changing my mind.) Why? Because I needed Python 2.4 just now on El Capitan and it's too hard to install without buildout.python. I ran brew link --force openssl as @jladage suggested.