Files
chatmail-core/python/tests/auditwheels.py
2021-05-23 11:43:30 +03:00

17 lines
446 B
Python

import os
import sys
import subprocess
if __name__ == "__main__":
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_" + arch])