# HG changeset patch # User Pierre-Yves David # Date 1730907585 -3600 # Node ID 94ded8440db65637d66ecd80591eedc7f64b1472 # Parent d22b6d6e02e1b8c65e1bd27e704d6d58d7b88dcc ci: use a pre-setup many-linux image to build wheel This produce wheel that are more universal and identical to the one we want to publish. diff -r d22b6d6e02e1 -r 94ded8440db6 contrib/heptapod-ci.yml --- a/contrib/heptapod-ci.yml Wed Nov 06 16:38:57 2024 +0100 +++ b/contrib/heptapod-ci.yml Wed Nov 06 16:39:45 2024 +0100 @@ -39,9 +39,8 @@ when: on_success needs: [] -# TODO: we should use an image based on manylinux instead "all-in-one" image -# used for all test so far. .build-wheel: &wheel + image: "registry.heptapod.net/mercurial/ci-images/core-wheel-x86_64-c:v3.0" <<: *all stage: build variables: @@ -50,14 +49,13 @@ MERCURIAL_SETUP_FORCE_TRANSLATIONS: "1" CI_CLEVER_CLOUD_FLAVOR: "XS" before_script: - - echo "python used, $PYTHON" - - $PYTHON --version - echo $WHEEL_TYPE - test -n "$WHEEL_TYPE" - echo $FLAVOR - mkdir -p wheels/$WHEEL_TYPE script: - - $PYTHON setup.py bdist_wheel $FLAVOR --dist-dir wheels/$WHEEL_TYPE + - /opt/python/cp311-cp311/bin/python setup.py bdist_wheel --dist-dir tmp-wheelhouse + - auditwheel repair tmp-wheelhouse/*.whl -w wheels/$WHEEL_TYPE/ artifacts: paths: - wheels/$WHEEL_TYPE