Skip to content

Commit

Permalink
ci: trying to fix CentOS 7 deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 1, 2024
1 parent 00e6b48 commit d10071c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Build wheels (manylinux)
uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_BEFORE_BUILD: "yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
CIBW_BEFORE_BUILD: "bash scripts/fixup_centos_7_in_ci.sh && yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
CIBW_BUILD: "*-manylinux_${{ matrix.wheel_arch }}"
# Skip tests for Python 3.10 onwards because SciPy does not have
# 32-bit wheels for Linux
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Build wheels (manylinux)
uses: pypa/cibuildwheel@v2.19.1
env:
CIBW_BEFORE_BUILD: "yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
CIBW_BEFORE_BUILD: "bash scripts/fixup_centos_7_in_ci.sh && yum install -y flex bison libxml2-devel zlib-devel cairo-devel && pip install -U cmake pip setuptools wheel && python setup.py build_c_core"
CIBW_ARCHS_LINUX: aarch64
CIBW_BUILD: "*-manylinux_aarch64"

Expand Down
7 changes: 7 additions & 0 deletions scripts/fixup_centos_7_in_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
# Workaround for cibuildwheel Docker images using CentOS 7 now that CentOS 7
# is gone.

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo

0 comments on commit d10071c

Please sign in to comment.