mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 10:56:29 +03:00
python: use locally installed auditwheel
`auditwheel` is a part of manylinux images, there is no need to create a virtual environment and install it again.
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
import os
|
|
||||||
import subprocess
|
|
||||||
import sys
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
assert len(sys.argv) == 2
|
|
||||||
workspacedir = sys.argv[1]
|
|
||||||
for relpath in os.listdir(workspacedir):
|
|
||||||
if relpath.startswith("deltachat"):
|
|
||||||
p = os.path.join(workspacedir, relpath)
|
|
||||||
subprocess.check_call(
|
|
||||||
[
|
|
||||||
"auditwheel",
|
|
||||||
"repair",
|
|
||||||
p,
|
|
||||||
"-w",
|
|
||||||
workspacedir,
|
|
||||||
],
|
|
||||||
)
|
|
||||||
@@ -34,18 +34,6 @@ passenv =
|
|||||||
CARGO_TARGET_DIR
|
CARGO_TARGET_DIR
|
||||||
RUSTC_WRAPPER
|
RUSTC_WRAPPER
|
||||||
|
|
||||||
[testenv:auditwheels]
|
|
||||||
skipsdist = True
|
|
||||||
deps = auditwheel
|
|
||||||
passenv =
|
|
||||||
DCC_RS_DEV
|
|
||||||
DCC_RS_TARGET
|
|
||||||
AUDITWHEEL_ARCH
|
|
||||||
AUDITWHEEL_PLAT
|
|
||||||
AUDITWHEEL_POLICY
|
|
||||||
commands =
|
|
||||||
python tests/auditwheels.py {toxworkdir}/wheelhouse
|
|
||||||
|
|
||||||
[testenv:lint]
|
[testenv:lint]
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
skip_install = True
|
skip_install = True
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ unset DCC_NEW_TMP_EMAIL
|
|||||||
|
|
||||||
# Try to build wheels for a range of interpreters, but don't fail if they are not available.
|
# Try to build wheels for a range of interpreters, but don't fail if they are not available.
|
||||||
# E.g. musllinux_1_1 does not have PyPy interpreters as of 2022-07-10
|
# E.g. musllinux_1_1 does not have PyPy interpreters as of 2022-07-10
|
||||||
tox --workdir "$TOXWORKDIR" -e py37,py38,py39,py310,py311,pypy37,pypy38,pypy39,auditwheels --skip-missing-interpreters true
|
tox --workdir "$TOXWORKDIR" -e py37,py38,py39,py310,py311,pypy37,pypy38,pypy39 --skip-missing-interpreters true
|
||||||
|
|
||||||
|
auditwheel repair "$TOXWORKDIR/wheelhouse/deltachat*" -w "$TOXWORKDIR/wheelhouse"
|
||||||
|
|
||||||
|
|
||||||
echo -----------------------
|
echo -----------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user