@@ -45,36 +45,32 @@ download_file() {
45
45
GCC_URL="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"
46
46
download_file "$GCC_URL" "gcc.tar.xz"
47
47
tar xf gcc.tar.xz -C /opt || echo "Failed to extract GCC"
48
- export PATH="/opt/aarch64-linux-gnu/bin:$PATH"
49
48
50
49
# Install Miniconda and sleef
51
50
MINICONDA_URL="https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh"
52
51
download_file "$MINICONDA_URL" "miniconda.sh"
53
52
bash miniconda.sh -b -p $HOME/miniconda || echo "Failed to install Miniconda"
54
- export PATH="$HOME/miniconda/bin:$PATH"
55
- conda install -y -c conda-forge sleef || echo "Failed to install sleef"
53
+ $HOME/miniconda/bin/conda install -y -c conda-forge sleef || echo "Failed to install sleef"
56
54
57
55
# Verify sleef installation
58
56
ls -l $HOME/miniconda/include/sleef.h || echo "sleef.h not found"
59
57
60
58
# Print environment information for debugging
61
- echo "PATH: $PATH"
62
59
echo "GCC version:"
63
- gcc --version || echo "GCC not found"
60
+ /opt/aarch64-linux-gnu/bin/ gcc --version || echo "GCC not found"
64
61
echo "Python version:"
65
62
python --version
66
63
echo "Conda version:"
67
- conda --version
64
+ $HOME/miniconda/bin/ conda --version
68
65
"""
69
- 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++" }
66
+ environment = { 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++" }
70
67
repair-wheel-command = " auditwheel repair -w {dest_dir} {wheel}"
71
68
72
69
[tool .cibuildwheel .macos ]
73
70
before-all = """
74
71
curl -L https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh
75
72
bash miniconda.sh -b -p $HOME/miniconda
76
- export PATH="$HOME/miniconda/bin:$PATH"
77
- conda install -y -c conda-forge sleef
73
+ $HOME/miniconda/bin/conda install -y -c conda-forge sleef
78
74
ls -l $HOME/miniconda/include/sleef.h || echo "sleef.h not found"
79
75
"""
80
76
environment = { DYLD_LIBRARY_PATH = " $HOME/miniconda/lib:$DYLD_LIBRARY_PATH" , LIBRARY_PATH = " $HOME/miniconda/lib:$LIBRARY_PATH" , CFLAGS = " -I$HOME/miniconda/include $CFLAGS" , CXXFLAGS = " -I$HOME/miniconda/include $CXXFLAGS" , LDFLAGS = " -L$HOME/miniconda/lib $LDFLAGS" }
0 commit comments