diff --git a/python/tests/auditwheels.py b/python/tests/auditwheels.py index bb8549b1c..b3806404e 100644 --- a/python/tests/auditwheels.py +++ b/python/tests/auditwheels.py @@ -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]) diff --git a/python/tox.ini b/python/tox.ini index fe82cd198..67a3d5301 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -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