Skip to content

Commit

Permalink
enable for python 3.5, create missed dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Oct 9, 2020
1 parent 5be9658 commit a0d8733
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def install_cpython(version: str, url: str) -> Path:
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'
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'])
else:
call(["sudo", str(installation_bin_path/python_executable), str(install_certifi_script)])

call(["sudo", str(installation_bin_path/python_executable), str(install_certifi_script)])

pip_executable = 'pip3' if version[0] == '3' else 'pip'
make_symlinks(installation_bin_path, python_executable, pip_executable)
Expand Down
1 change: 1 addition & 0 deletions cibuildwheel/resources/install_certifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def main():
"-E", "-s", "-m", "pip", "install", "--upgrade", "certifi"])
import certifi
# change working directory to the default SSL directory
os.makedirs(openssl_dir, exist_ok=True, mode=755)
os.chdir(openssl_dir)
relpath_to_certifi_cafile = os.path.relpath(certifi.where())
print(" -- removing any existing file or link")
Expand Down

0 comments on commit a0d8733

Please sign in to comment.