Skip to content

Commit f4a38ed

Browse files
committed
🐛 Fix archs again
1 parent 87430dd commit f4a38ed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "xmake_python"
66
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
77
[project]
88
name = "xmake-python"
9-
version = "0.0.10"
9+
version = "0.0.11"
1010
description = "xmake Python build system (PEP 517)"
1111
readme = "README.md"
1212
# from typing import Self

src/xmake_python/wheel.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def wheel_filename(self):
126126
root_is_purelib = False
127127
if self.kind == 1:
128128
py_api = ('py2.' if self.metadata.supports_py2 else '') + 'py3'
129-
archs = [sysconfig.get_platform().split("-")[-1]]
129+
archs = []
130+
if sysconfig.get_platform().split("-")[-1] == "universal2":
131+
archs = ["universal2"]
130132
tag = str(WheelTag.compute_best(archs, py_api, root_is_purelib=root_is_purelib))
131133
return '{}-{}.whl'.format(dist_name, tag)
132134

0 commit comments

Comments
 (0)