Update openssl patch from 1.0.2u to 1.1.1h on macOS

- Update openssl patch from 1.0.2u to 1.1.1h on macOS
- Remove python 3.5 workaround in install_certifi.py
This commit is contained in:
mayeut
2020-10-10 18:55:26 +02:00
parent 8094b3f6db
commit b2c4f3d385
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ def install_cpython(version: str, url: str) -> Path:
call(['sudo', 'installer', '-pkg', '/tmp/Python.pkg', '-target', '/'])
# patch open ssl
if version == '3.5':
open_ssl_patch_url = f'https://github.com/mayeut/patch-macos-python-openssl/releases/download/v1.0.2u/patch-macos-python-{version}-openssl-v1.0.2u.tar.gz'
open_ssl_patch_url = f'https://github.com/mayeut/patch-macos-python-openssl/releases/download/v1.1.1h/patch-macos-python-{version}-openssl-v1.1.1h.tar.gz'
download(open_ssl_patch_url, Path('/tmp/python-patch.tar.gz'))
call(['sudo', 'tar', '-C', f'/Library/Frameworks/Python.framework/Versions/{version}/', '-xmf', '/tmp/python-patch.tar.gz'])
@@ -30,8 +30,6 @@ def main():
import certifi
# change working directory to the default SSL directory
if sys.version_info[0:2] == (3, 5):
os.makedirs(openssl_dir, exist_ok=True, mode=0o775)
os.chdir(openssl_dir)
relpath_to_certifi_cafile = os.path.relpath(certifi.where())