collective/buildout.python

Build problems on OS X 10.11

Closed this issue · 6 comments

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.

@jladage This may give you some hints.

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.

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

Drop Python 2.4 👍

Fixed by Hanno in f356afa.

Drop Python 2.4 👎 (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.