Skip to content

Commit 70e37a4

Browse files
authored
fix: add tag for macOS x86_64 (#83)
fix #81
1 parent f83a5dd commit 70e37a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/repair_wheel.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,17 @@ def main():
5555
assert len(files) == 1, files
5656
file = files[0]
5757

58-
# we need to handle macOS universal2 & arm64 here for now, let's use additional_platforms for this.
58+
# we need to handle macOS x86_64 & arm64 here for now, let's use additional_platforms for this.
5959
additional_platforms = []
6060
if os_ == "macos":
6161
# first, get the target macOS deployment target from the wheel
6262
match = re.match(r"^.*-macosx_(\d+)_(\d+)_.*\.whl$", file.name)
6363
assert match is not None, f"Couldn't match on {file.name}"
6464
target = tuple(map(int, match.groups()))
6565

66-
# let's add universal2 platform for this wheel.
67-
additional_platforms = ["macosx_{}_{}_universal2".format(*target)]
66+
# given pip support for universal2 was added after x86_64 introduction
67+
# let's also add x86_64 platform.
68+
additional_platforms.append("macosx_{}_{}_x86_64".format(*target))
6869

6970
# given pip support for universal2 was added after arm64 introduction
7071
# let's also add arm64 platform.

0 commit comments

Comments
 (0)