view contrib/build-one-linux-wheel.sh @ 52279:b267c5764cc6 stable 6.9

relnotes: write final 6.9 notes I've folded bugfixes that only exist to fix 6.9-specific things to the best of my attention span for this task.
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 20 Nov 2024 14:41:23 +0100
parents 4d825ad10840
children
line wrap: on
line source

#!/bin/bash
# build a single linux wheel within a prepared imaged based on manylinux images
#
#
#
set -eu

# enforce that the translation are built
export MERCURIAL_SETUP_FORCE_TRANSLATIONS=1

if [ $# -lt 2 ]; then
    echo "usage $0 PYTHONTAG DEST_DIR" >&2
    echo "" >&2
    echo 'PYTHONTAG should be of the form "cp310-cp310"' >&2
    exit 64
fi
py_tag=$1
destination_directory=$2


tmp_wheel_dir=./tmp-wheelhouse

if [ -e $tmp_wheel_dir ]; then
    rm -rf $tmp_wheel_dir
fi
/opt/python/$py_tag/bin/python setup.py bdist_wheel --dist-dir $tmp_wheel_dir
# adjust it to make it universal
auditwheel repair $tmp_wheel_dir/*.whl -w $destination_directory