[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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"
export LDFLAGS="-L/my/home/dir/lib"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 easiest way is to get them from a 
third-party package manager like Homebrew or MacPorts but you certainly can 
download an OpenSSL source release from https://www.openssl.org and build the 
libraries themselves.  If you do not have administrator access, you will 
probably need to modify the OpenSSL build using at least --prefix to install to 
a non-system location and then rerun Python's ./configure with CFLAGS and 
LDFLAGS pointing to the installed location of your OpenSSL.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 not available.

--
nosy: +Tommy.Carstensen

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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!

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
/usr/local/Cellar/openssl/1.0.2j/bin/c_rehash
/usr/local/Cellar/openssl/1.0.2j/bin/openssl
/usr/local/Cellar/openssl/1.0.2j/include/openssl/ (75 files)
/usr/local/Cellar/openssl/1.0.2j/lib/libcrypto.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.2j/lib/libssl.1.0.0.dylib
/usr/local/Cellar/openssl/1.0.2j/lib/engines/ (12 files)
/usr/local/Cellar/openssl/1.0.2j/lib/pkgconfig/ (3 files)
/usr/local/Cellar/openssl/1.0.2j/lib/ (4 other files)
/usr/local/Cellar/openssl/1.0.2j/share/man/ (1592 files)

but if I understood Mac/BuildScript/resources/ReadMe.rtf correctly, this should 
be irrelevant.

Anyway the resulting pip seems to be unusable:

~/ ▸ python -mpip install cx_Oracle
pip is configured with locations that require TLS/SSL, however the ssl module 
in Python is not available.
Collecting cx_Oracle
  Could not fetch URL https://pypi.python.org/simple/cx-oracle/: There was a 
problem confirming the ssl certificate: Can't connect to HTTPS URL because the 
SSL module is not available. - skipping

--
components: Build
files: Python3.6-build.log
messages: 284193
nosy: doerwalter
priority: normal
severity: normal
status: open
title: Compiling Python 3.6 from source on MacOS X Sierra
versions: Python 3.6
Added file: http://bugs.python.org/file46065/Python3.6-build.log

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com