From d3bcfe431f090f27f61f651389f2f5cbccf0ed26 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 2 Jan 2021 11:41:05 +0000 Subject: [PATCH] Merge pull request #506 from Czaki/macos_patch_fix Macos patch fix --- cibuildwheel/macos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index b15cf10c..ec112ee2 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -108,7 +108,7 @@ def install_pypy(version: str, url: str) -> Path: # Patch PyPy to make sure headers get installed into a venv patch_version = '_27' if version == '2.7' else '' patch_path = Path(__file__).absolute().parent / 'resources' / f'pypy_venv{patch_version}.patch' - call(['patch', '--force', '-d', installation_path, patch_path]) + call(['patch', '--force', '-p1', '-d', installation_path, '-i', patch_path]) installation_bin_path = installation_path / 'bin' python_executable = 'pypy3' if version[0] == '3' else 'pypy'