mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
python: support running auditwheels for aarch64
This commit is contained in:
@@ -5,11 +5,12 @@ import subprocess
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
assert len(sys.argv) == 2
|
assert len(sys.argv) == 3
|
||||||
workspacedir = sys.argv[1]
|
workspacedir = sys.argv[1]
|
||||||
|
arch = sys.argv[2]
|
||||||
for relpath in os.listdir(workspacedir):
|
for relpath in os.listdir(workspacedir):
|
||||||
if relpath.startswith("deltachat"):
|
if relpath.startswith("deltachat"):
|
||||||
p = os.path.join(workspacedir, relpath)
|
p = os.path.join(workspacedir, relpath)
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
["auditwheel", "repair", p, "-w", workspacedir,
|
["auditwheel", "repair", p, "-w", workspacedir,
|
||||||
"--plat", "manylinux2014_x86_64"])
|
"--plat", "manylinux2014_" + arch])
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ deps =
|
|||||||
skipsdist = True
|
skipsdist = True
|
||||||
deps = auditwheel
|
deps = auditwheel
|
||||||
commands =
|
commands =
|
||||||
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
sh -c 'python tests/auditwheels.py {toxworkdir}/wheelhouse $(uname -m)'
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|||||||
Reference in New Issue
Block a user