The pip ssl mess on Mac OS X: ways forwards

38 views
Skip to first unread message

watso...@gmail.com

unread,
Nov 22, 2020, 2:24:45 PM11/22/20
to sage-support

Right now pip doesn't work in the binary distributions due to the absence of the ssl module. This is apparently due to licensing restrictions, thanks to the terrible license of OpenSSL.

My suggestion is that we hack together  a build curl+NSS, which is freely redistributable. Then as part of the post-install fixup the curl grabs OpenSSL and the ssl python module, and we run a hacky install of the local copy with pip.  Better options highly welcome.

Sincerely,
Watson Ladd

John H Palmieri

unread,
Nov 22, 2020, 4:00:21 PM11/22/20
to sage-support
Is it possible to create a binary distribution that relies on a system Python 3? Those may already be built with ssl support.

Dima Pasechnik

unread,
Nov 22, 2020, 4:22:44 PM11/22/20
to sage-support
On Sun, Nov 22, 2020 at 9:00 PM John H Palmieri <jhpalm...@gmail.com> wrote:
>
> Is it possible to create a binary distribution that relies on a system Python 3? Those may already be built with ssl support.

On macOS? Not really. But one can mimic what cpython is doing in their
Python installer - they have a second step,
installing certificates.

>
> On Sunday, November 22, 2020 at 11:24:45 AM UTC-8 watso...@gmail.com wrote:
>>
>>
>> Right now pip doesn't work in the binary distributions due to the absence of the ssl module. This is apparently due to licensing restrictions, thanks to the terrible license of OpenSSL.
>>
>> My suggestion is that we hack together a build curl+NSS, which is freely redistributable. Then as part of the post-install fixup the curl grabs OpenSSL and the ssl python module, and we run a hacky install of the local copy with pip. Better options highly welcome.
>>
>> Sincerely,
>> Watson Ladd
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/03af83f0-3419-474f-8ef1-e78166b8d793n%40googlegroups.com.

Nathan Dunfield

unread,
Nov 23, 2020, 12:19:17 PM11/23/20
to sage-support
For a quick hack fix, you can use:  https://github.com/3-manifolds/fix_mac_sage/
Reply all
Reply to author
Forward
0 new messages