-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: trying to fix CentOS 7 deprecation
- Loading branch information
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
- name: Build wheels (manylinux) | ||
uses: pypa/[email protected] | ||
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 | ||
|
@@ -66,7 +66,7 @@ jobs: | |
- name: Build wheels (manylinux) | ||
uses: pypa/[email protected] | ||
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" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|