[issue29095] Compiling Python 3.6 from source on MacOS X Sierra

Chi Hsuan Yen report at bugs.python.org
Thu Dec 29 06:42:06 EST 2016


Chi Hsuan Yen added the comment:

Ah, things are quite the opposite :)

You have to set CFLAGS and LDFLAGS so that setup.py can find openssl headers and libraries from Homebrew. For example:

export CFLAGS="-I/usr/local/opt/openssl/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib"

The reason for that is that Apple once shipped their forked OpenSSL in older Mac OS X versions, so Homebrew can't install OpenSSL headers and libraries to public paths (/usr/local/include & /usr/local/lib). On the other hand, CPython should not use paths in /usr/local/opt/ as it's internal details of Homebrew.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29095>
_______________________________________


More information about the Python-bugs-list mailing list