Skip to content

Commit d63ebdd

Browse files
committed
macOS: patch _ssl module on Python 3.4 & 3.5
1 parent 93c133f commit d63ebdd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cibuildwheel/macos.py

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ def call(args, env=None, cwd=None, shell=False):
5252
call(['curl', '-L', '-o', '/tmp/Python.pkg', config.url])
5353
# install
5454
call(['sudo', 'installer', '-pkg', '/tmp/Python.pkg', '-target', '/'])
55+
# patch open ssl
56+
if config.version in ('3.4', '3.5'):
57+
call(['curl', '-fsSLo', '/tmp/python-patch.tar.gz', 'https://github.com/mayeut/patch-macos-python-openssl/releases/download/v0.1.0/patch-macos-python-%s-openssl-v0.1.0.tar.gz' % config.version])
58+
call(['sudo', 'tar', '-C', '/Library/Frameworks/Python.framework/Versions/%s/' % config.version, '-xmf', '/tmp/python-patch.tar.gz'])
5559

5660
env = os.environ.copy()
5761
env['PATH'] = os.pathsep.join([

0 commit comments

Comments
 (0)