fix: improve system dependency installation in manylinux containers
- Add yum cache cleaning and updating - Make package installations more resilient with fallbacks - Use pkgconfig instead of pkg-config (CentOS 7 naming) - Handle optional packages that might not be available - Add error handling for package installation failures
This commit is contained in:
15
.github/workflows/build-cibuildwheel.yml
vendored
15
.github/workflows/build-cibuildwheel.yml
vendored
@@ -51,9 +51,10 @@ jobs:
|
||||
CIBW_SKIP: "*-win32 *-manylinux_i686 pp*"
|
||||
|
||||
CIBW_BEFORE_ALL_LINUX: |
|
||||
yum install -y epel-release
|
||||
yum install -y boost-devel protobuf-compiler zeromq-devel \
|
||||
pkg-config openblas-devel
|
||||
yum clean all && yum makecache
|
||||
yum install -y epel-release || true
|
||||
yum makecache || true
|
||||
yum install -y boost-devel protobuf-compiler zeromq-devel pkgconfig openblas-devel || echo "Some packages failed, continuing..."
|
||||
|
||||
CIBW_BEFORE_ALL_MACOS: |
|
||||
brew install llvm libomp boost protobuf zeromq
|
||||
@@ -76,9 +77,11 @@ jobs:
|
||||
CIBW_SKIP: "*-win32 *-manylinux_i686 pp*"
|
||||
|
||||
CIBW_BEFORE_ALL_LINUX: |
|
||||
yum install -y epel-release
|
||||
yum install -y protobuf-compiler openblas-devel \
|
||||
libaio-devel protobuf-devel
|
||||
yum clean all && yum makecache
|
||||
yum install -y epel-release || true
|
||||
yum makecache || true
|
||||
yum install -y protobuf-compiler openblas-devel protobuf-devel || echo "Some packages failed, continuing..."
|
||||
yum install -y libaio-devel || echo "libaio-devel not available, continuing..."
|
||||
|
||||
CIBW_BEFORE_ALL_MACOS: |
|
||||
brew install llvm libomp protobuf
|
||||
|
||||
Reference in New Issue
Block a user