Mercurial > public > mercurial-scm > hg
view contrib/build-one-linux-wheel.sh @ 53042:cdd7bf612c7b stable tip
bundle-spec: properly format boolean parameter (issue6960)
This was breaking automatic clone bundle generation. This changeset fixes it and
add a test to catch it in the future.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 11 Mar 2025 02:29:42 +0100 |
parents | 811584a7fa99 |
children |
line wrap: on
line source
#!/bin/bash # build a single linux wheel within a prepared imaged based on manylinux images # # # set -eu if [ $# -lt 2 ]; then echo "usage $0 PYTHONTAG DEST_DIR [FLAVOR]" >&2 echo "" >&2 echo 'PYTHONTAG should be of the form "cp310-cp310"' >&2 exit 64 fi py_tag=$1 destination_directory=$2 flavor=${3:-c} flavor_arg="" if [[ "${flavor}" == "c" ]]; then : elif [[ "$flavor" == "rust" ]]; then flavor_arg="--config-setting=--global-option=--rust" else echo "unknown flavor: \"$flavor\"" exit 96 fi tmp_wheel_dir=./tmp-wheelhouse if [ -e $tmp_wheel_dir ]; then rm -rf $tmp_wheel_dir fi /opt/python/$py_tag/bin/python -m build --outdir $tmp_wheel_dir $flavor_arg # adjust it to make it universal auditwheel repair $tmp_wheel_dir/*.whl -w $destination_directory