Use AUDITWHEEL_PLAT variable

manylinux images set AUDITWHEEL_PLAT variable
which is used as a default --plat value by auditwheel.
This commit is contained in:
link2xt
2022-06-25 21:12:56 +00:00
parent a36885e886
commit 548335082b
2 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,10 @@
import os
import platform
import subprocess
import sys
if __name__ == "__main__":
assert len(sys.argv) == 2
workspacedir = sys.argv[1]
arch = platform.machine()
for relpath in os.listdir(workspacedir):
if relpath.startswith("deltachat"):
p = os.path.join(workspacedir, relpath)
@@ -17,7 +15,5 @@ if __name__ == "__main__":
p,
"-w",
workspacedir,
"--plat",
"manylinux2014_" + arch,
]
)

View File

@@ -28,6 +28,10 @@ deps =
[testenv:auditwheels]
skipsdist = True
deps = auditwheel
passenv =
AUDITWHEEL_ARCH
AUDITWHEEL_PLAT
AUDITWHEEL_POLICY
commands =
python tests/auditwheels.py {toxworkdir}/wheelhouse