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

2017-10-05 Thread Greg Couch
Greg Couch added the comment: The problem with compiling OpenSSL from source is that it doesn't know how to access the root certificates needed for verification on Mac OS X. See issue17128 for more details. -- nosy: +gregcouch

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

2017-03-24 Thread Tommy Carstensen
Tommy Carstensen added the comment: Thanks @ned.deily ! That did the trick for me! When installing openssl I just had to do ./config --prefix=/my/home/dir prior to doing make and make install. Then I just did two commands prior to installing python3.6: export CFLAGS="-I/my/home/dir/include"

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

2017-03-24 Thread Ned Deily
Ned Deily added the comment: @Tommy.Carstensen: Unfortunately, Apple has deprecated use of the system-supplied OpenSSL libraries and with the latest releases no longer supply the header files needed to build with them. They are very old anyway. So, you need to supply a version of them. The

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

2017-03-24 Thread Tommy Carstensen
Tommy Carstensen added the comment: I have the same problem as described here. How can I install Python3.6 and pip without sudo and without homebrew? I get the same error message after installation: pip is configured with locations that require TLS/SSL, however the ssl module in Python is

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

2016-12-29 Thread Walter Dörwald
Walter Dörwald added the comment: OK, with the fixed CFLAGS definition I do indeed get a working ssl module. I wonder whether the link Ned posted should be put into the README file. Anyway I think the issue can be closed. Thanks for the help! --

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

2016-12-29 Thread Ned Deily
Ned Deily added the comment: See the Developers Guide for more information on build dependencies and recommended ways to satisfy OpenSSL dependencies: http://cpython-devguide.readthedocs.io/en/latest/setup.html#build-dependencies -- nosy: +ned.deily resolution: -> not a bug stage:

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

2016-12-29 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Change this line: export CFLAGS="-I/usr/local/Cellar/openssl/1.0.2j/include/openssl" into: export CFLAGS="-I/usr/local/Cellar/openssl/1.0.2j/include" -- ___ Python tracker

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

2016-12-29 Thread Walter Dörwald
Walter Dörwald added the comment: OK, I've set CFLAGS and LDFLAGS as you suggested. However the ssl module still doesn't get built. Attached is the new build log (Python3.6-build2.log) -- Added file: http://bugs.python.org/file46073/Python3.6-build2.log

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

2016-12-29 Thread Chi Hsuan Yen
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

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

2016-12-29 Thread Walter Dörwald
Walter Dörwald added the comment: No, neither CFLAGS nor LDFLAGS are set, the only "FLAGS" environment variable I have set is ARCHFLAGS='-arch x86_64' (I can't remember why). However unsetting this variable doesn't change the result. -- ___ Python

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

2016-12-28 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Did you set CFLAGS and LDFLAGS? -- nosy: +Chi Hsuan Yen ___ Python tracker ___

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

2016-12-28 Thread Walter Dörwald
New submission from Walter Dörwald: I'm trying to compile Python 3.6 from source on MacOS X Sierra. However it seems that the _ssl module doesn't get built. Attached is the complete output. Note that I have openssl installed via homebrew: ~/ ▸ brew list openssl