Skip to content

Commit 468e329

Browse files
committed
replacng problematic yum commands by standalone installation
1 parent 9288f5f commit 468e329

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

quaddtype/pyproject.toml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@ test-extras = ["test"]
3434
[tool.cibuildwheel.linux]
3535
before-all = """
3636
set -ex
37-
# Update ca-certificates
38-
yum install -y ca-certificates
39-
update-ca-trust
40-
41-
# Install wget and other necessary tools
42-
yum install -y wget
43-
44-
# Install devtoolset-8
45-
yum install -y centos-release-scl
46-
yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++
37+
# Download and install a standalone GCC
38+
wget https://github.com/Aetherinox/gcc-arm64/releases/download/12.3.1-2023.10/aarch64-linux-gnu-12.3.1-2023.10-x86_64-linux.tar.xz
39+
tar xf aarch64-linux-gnu-12.3.1-2023.10-x86_64-linux.tar.xz -C /opt
40+
export PATH="/opt/aarch64-linux-gnu/bin:$PATH"
4741
4842
# Install Miniconda and sleef
4943
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
@@ -54,8 +48,8 @@ conda install -y -c conda-forge sleef
5448
# Verify sleef installation
5549
ls -l $HOME/miniconda/include/sleef.h || echo "sleef.h not found"
5650
"""
57-
before-build = "source /opt/rh/devtoolset-8/enable"
58-
environment = { PATH = "/opt/rh/devtoolset-8/root/usr/bin:$HOME/miniconda/bin:$PATH", LD_LIBRARY_PATH = "/opt/rh/devtoolset-8/root/usr/lib64:/opt/rh/devtoolset-8/root/usr/lib:$HOME/miniconda/lib:$LD_LIBRARY_PATH", LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH", CFLAGS = "-I$HOME/miniconda/include -fPIC $CFLAGS", CXXFLAGS = "-I$HOME/miniconda/include -fPIC $CXXFLAGS", LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS", AUDITWHEEL_PLAT = "manylinux2014_x86_64", CC = "/opt/rh/devtoolset-8/root/usr/bin/gcc", CXX = "/opt/rh/devtoolset-8/root/usr/bin/g++" }
51+
# have to give in one-line as toml does not allow multi-line here
52+
environment = {PATH = "/opt/aarch64-linux-gnu/bin:$HOME/miniconda/bin:$PATH", LD_LIBRARY_PATH = "/opt/aarch64-linux-gnu/lib:$HOME/miniconda/lib:$LD_LIBRARY_PATH", LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH", CFLAGS = "-I$HOME/miniconda/include -fPIC $CFLAGS", CXXFLAGS = "-I$HOME/miniconda/include -fPIC $CXXFLAGS", LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS", AUDITWHEEL_PLAT = "manylinux2014_x86_64", CC = "/opt/aarch64-linux-gnu/bin/gcc", CXX = "/opt/aarch64-linux-gnu/bin/g++"}
5953
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
6054

6155
[tool.cibuildwheel.macos]

0 commit comments

Comments
 (0)