From f476046ee3d4e1b9c9c704ba256e8000dd995d8b Mon Sep 17 00:00:00 2001 From: bbalouki Date: Sat, 11 Jul 2026 11:12:17 +0100 Subject: [PATCH] ci: install gcc-toolset-13 for manylinux wheel builds Co-Authored-By: Claude Sonnet 5 --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b9fb92c..178ea7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,15 @@ manylinux-aarch64-image = "manylinux_2_28" test-requires = "pytest" test-command = "pytest {project}/python/tests" +[tool.cibuildwheel.linux] +# manylinux_2_28's default gcc-toolset-12 doesn't ship at all (GCC +# only added std::format support in GCC 13), which the core library needs. +before-all = "yum install -y gcc-toolset-13" + +[tool.cibuildwheel.linux.environment] +CC = "/opt/rh/gcc-toolset-13/root/usr/bin/gcc" +CXX = "/opt/rh/gcc-toolset-13/root/usr/bin/g++" + [tool.cibuildwheel.macos.environment] # C++20 with libc++ needs a recent deployment target. MACOSX_DEPLOYMENT_TARGET = "11.0"