mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
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:
@@ -1,12 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
import platform
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
assert len(sys.argv) == 2
|
assert len(sys.argv) == 2
|
||||||
workspacedir = sys.argv[1]
|
workspacedir = sys.argv[1]
|
||||||
arch = platform.machine()
|
|
||||||
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)
|
||||||
@@ -17,7 +15,5 @@ if __name__ == "__main__":
|
|||||||
p,
|
p,
|
||||||
"-w",
|
"-w",
|
||||||
workspacedir,
|
workspacedir,
|
||||||
"--plat",
|
|
||||||
"manylinux2014_" + arch,
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ deps =
|
|||||||
[testenv:auditwheels]
|
[testenv:auditwheels]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
deps = auditwheel
|
deps = auditwheel
|
||||||
|
passenv =
|
||||||
|
AUDITWHEEL_ARCH
|
||||||
|
AUDITWHEEL_PLAT
|
||||||
|
AUDITWHEEL_POLICY
|
||||||
commands =
|
commands =
|
||||||
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user