Skip to content

Commit

Permalink
macOS: patch _ssl module on Python 3.4 & 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed May 6, 2018
1 parent 93c133f commit d63ebdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def call(args, env=None, cwd=None, shell=False):
call(['curl', '-L', '-o', '/tmp/Python.pkg', config.url])
# install
call(['sudo', 'installer', '-pkg', '/tmp/Python.pkg', '-target', '/'])
# patch open ssl
if config.version in ('3.4', '3.5'):
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])
call(['sudo', 'tar', '-C', '/Library/Frameworks/Python.framework/Versions/%s/' % config.version, '-xmf', '/tmp/python-patch.tar.gz'])

env = os.environ.copy()
env['PATH'] = os.pathsep.join([
Expand Down

0 comments on commit d63ebdd

Please sign in to comment.