diff --git a/.ci/before_build_wheel.sh b/.ci/before_build_wheel.sh new file mode 100644 index 0000000000..4356dbc7e7 --- /dev/null +++ b/.ci/before_build_wheel.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -eu + +# On 32-bit Linux platforms, we need libatomic1 to use rustup +if command -v apt-get &> /dev/null; then + apt-get update + apt-get install libatomic1 +fi + +# Install a Rust toolchain +curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.82.0 -y --profile minimal diff --git a/changelog.d/18212.misc b/changelog.d/18212.misc new file mode 100644 index 0000000000..0e8516a323 --- /dev/null +++ b/changelog.d/18212.misc @@ -0,0 +1 @@ +Fix wheel building configuration in CI by installing libatomic1. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 5f18bd0768..80482f469a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -390,7 +390,7 @@ skip = "cp36* cp37* cp38* pp37* pp38* *-musllinux_i686 pp*aarch64 *-musllinux_aa # # We temporarily pin Rust to 1.82.0 to work around # https://github.com/element-hq/synapse/issues/17988 -before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.82.0 -y --profile minimal" +before-all = "sh .ci/before_build_wheel.sh" environment= { PATH = "$PATH:$HOME/.cargo/bin" } # For some reason if we don't manually clean the build directory we