Skip to content

Commit

Permalink
fix macos arm64 wheel selection
Browse files Browse the repository at this point in the history
closes #350
  • Loading branch information
DavHau committed Jan 28, 2022
1 parent 7c05e2b commit 2e63cb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mach_nix/data/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ def __init__(self, data_dir: str, *args, **kwargs):
self.preferred_wheels = (
re.compile(rf".*(py{maj}|cp{maj}){min}?[\.-].*({cp_abi}|abi3|none)-any"),
re.compile(rf".*(py{maj}|cp{maj}){min}?[\.-].*({cp_abi}|abi3|none)-macosx_\d*_\d*_universal"),
re.compile(rf".*(py{maj}|cp{maj}){min}?[\.-].*({cp_abi}|abi3|none)-macosx_\d*_\d*_x86_64"),
re.compile(rf".*(py{maj}|cp{maj}){min}?[\.-].*({cp_abi}|abi3|none)-macosx_\d*_\d*_arm64"),
re.compile(rf".*(py{maj}|cp{maj}){min}?[\.-].*({cp_abi}|abi3|none)-macosx_\d*_\d*_{self.platform}"),
)
else:
raise Exception(f"Unsupported Platform {platform.system()}")
Expand Down

0 comments on commit 2e63cb5

Please sign in to comment.