python: support running auditwheels for aarch64

This commit is contained in:
link2xt
2021-05-23 11:39:23 +03:00
parent 67ca93b093
commit 09f5b015bb
2 changed files with 4 additions and 3 deletions

View File

@@ -5,11 +5,12 @@ import subprocess
if __name__ == "__main__":
assert len(sys.argv) == 2
assert len(sys.argv) == 3
workspacedir = sys.argv[1]
arch = sys.argv[2]
for relpath in os.listdir(workspacedir):
if relpath.startswith("deltachat"):
p = os.path.join(workspacedir, relpath)
subprocess.check_call(
["auditwheel", "repair", p, "-w", workspacedir,
"--plat", "manylinux2014_x86_64"])
"--plat", "manylinux2014_" + arch])

View File

@@ -27,7 +27,7 @@ deps =
skipsdist = True
deps = auditwheel
commands =
python tests/auditwheels.py {toxworkdir}/wheelhouse
sh -c 'python tests/auditwheels.py {toxworkdir}/wheelhouse $(uname -m)'
[testenv:lint]
skipsdist = True