Fix mypyc build errors on newer manylinux2014_x86_64 images (#3272)

Make sure `gcc` is installed in the build env

The mypyc build requires `gcc` to be installed even if it's being built with `clang`, otherwise `clang` fails to find `libgcc`.
This commit is contained in:
Zsolt Dollenstein 2022-09-15 21:08:26 +01:00 committed by GitHub
parent 04bce6ad2e
commit d852af7167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,10 +59,8 @@ PIP_NO_BUILD_ISOLATION = "no"
[tool.cibuildwheel.linux]
before-build = [
"pip install -r .github/mypyc-requirements.txt",
"yum install -y clang",
"yum install -y clang gcc",
]
# Newer images break the builds, not sure why. We'll need to investigate more later.
manylinux-x86_64-image = "quay.io/pypa/manylinux2014_x86_64:2021-11-20-f410d11"
[tool.cibuildwheel.linux.environment]
BLACK_USE_MYPYC = "1"