Skip to content

Commit 649c58d

Browse files
authored
Update entry.py
1 parent add2df3 commit 649c58d

File tree

1 file changed

+10
-1
lines changed
  • .github/workflows/scripts/ti_build

1 file changed

+10
-1
lines changed

.github/workflows/scripts/ti_build/entry.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,20 @@ def build_wheel(python: Command, pip: Command) -> None:
5252
elif wheel_tag:
5353
proj_tags.extend(["egg_info", f"--tag-build={wheel_tag}"])
5454

55-
if platform.system() == "Linux":
55+
u = platform.uname()
56+
if (u.system, u.machine) == ("Linux", "x86_64"):
5657
if is_manylinux2014():
5758
extra.extend(["-p", "manylinux2014_x86_64"])
5859
else:
5960
extra.extend(["-p", "manylinux_2_27_x86_64"])
61+
elif (u.system, u.machine) in (("Linux", "arm64"), ("Linux", "aarch64")):
62+
if is_manylinux2014():
63+
extra.extend(["-p", "manylinux2014_aarch64"])
64+
else:
65+
extra.extend(["-p", "manylinux_2_27_aarch64"])
66+
else:
67+
extra.extend(["-p", "manylinux2014_x86_64"])
68+
6069

6170
python("setup.py", "clean")
6271
python("misc/make_changelog.py", "--ver", "origin/master", "--repo_dir", "./", "--save")

0 commit comments

Comments
 (0)