@@ -30,7 +30,6 @@ skip = ["*-musllinux*", "pp*", "cp36-*", "cp37-*", "cp38-*", "cp39-*"]
30
30
test-command = """
31
31
python -c "import platform; print('Python version:', platform.python_version())"
32
32
python -c "import sys; print('sys.platform:', sys.platform)"
33
- ldd --version
34
33
uname -a
35
34
pip install {package}[test]
36
35
pytest {project}/tests
@@ -44,28 +43,50 @@ set -ex
44
43
yum install -y wget
45
44
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
46
45
bash miniconda.sh -b -p $HOME/miniconda
47
- $HOME/miniconda/bin/conda install -y -c conda-forge sleef
46
+ export PATH="$HOME/miniconda/bin:$PATH"
47
+ conda init bash
48
+ source ~/.bashrc
49
+ conda config --set always_yes yes --set changeps1 no
50
+ conda update -q conda
51
+ conda info -a
52
+ conda install -y -c conda-forge sleef
53
+ if [ ! -f "$HOME/miniconda/include/sleef.h" ]; then
54
+ echo "sleef.h not found. Installation may have failed."
55
+ exit 1
56
+ fi
48
57
ls -l $HOME/miniconda/include/sleef.h
49
58
"""
50
59
environment = { LD_LIBRARY_PATH = " $HOME/miniconda/lib:$LD_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" }
51
60
repair-wheel-command = " auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}"
52
61
53
62
[tool .cibuildwheel .macos ]
54
63
before-all = """
64
+ set -ex
55
65
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
56
66
bash miniconda.sh -b -p $HOME/miniconda
57
- $HOME/miniconda/bin/conda install -y -c conda-forge sleef
67
+ export PATH="$HOME/miniconda/bin:$PATH"
68
+ conda init bash
69
+ source ~/.bash_profile
70
+ conda config --set always_yes yes --set changeps1 no
71
+ conda update -q conda
72
+ conda info -a
73
+ conda install -y -c conda-forge sleef
74
+ if [ ! -f "$HOME/miniconda/include/sleef.h" ]; then
75
+ echo "sleef.h not found. Installation may have failed."
76
+ exit 1
77
+ fi
58
78
ls -l $HOME/miniconda/include/sleef.h
59
79
"""
60
80
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" }
81
+ repair-wheel-command = " delocate-wheel -w {dest_dir} -v {wheel}"
61
82
62
- [tool .cibuildwheel .windows ]
63
- before-all = [
64
- " powershell -Command \" Invoke-WebRequest -Uri https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -OutFile miniconda.exe\" " ,
65
- " start /wait \"\" miniconda.exe /S /D=%UserProfile%\\ Miniconda3" ,
66
- " %UserProfile%\\ Miniconda3\\ Scripts\\ activate.bat" ,
67
- " %UserProfile%\\ Miniconda3\\ Scripts\\ conda.exe install -y -c conda-forge sleef"
68
- ]
69
- before-build = " pip install delvewheel"
70
- repair-wheel-command = " delvewheel repair -w {dest_dir} {wheel} --verbose || echo 'Repair failed, continuing anyway'"
71
- environment = { LIBRARY_PATH = " %UserProfile%\\ Miniconda3\\ Library\\ lib;%LIBRARY_PATH%" , INCLUDE = " %UserProfile%\\ Miniconda3\\ Library\\ include;%INCLUDE%" , LIB = " %UserProfile%\\ Miniconda3\\ Library\\ lib;%LIB%" }
83
+ # [tool.cibuildwheel.windows]
84
+ # before-all = [
85
+ # "powershell -Command \"Invoke-WebRequest -Uri https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -OutFile miniconda.exe\"",
86
+ # "start /wait \"\" miniconda.exe /S /D=%UserProfile%\\Miniconda3",
87
+ # "%UserProfile%\\Miniconda3\\Scripts\\activate.bat",
88
+ # "%UserProfile%\\Miniconda3\\Scripts\\conda.exe install -y -c conda-forge sleef"
89
+ # ]
90
+ # before-build = "pip install delvewheel"
91
+ # repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel} --verbose || echo 'Repair failed, continuing anyway'"
92
+ # environment = { LIBRARY_PATH = "%UserProfile%\\Miniconda3\\Library\\lib;%LIBRARY_PATH%", INCLUDE = "%UserProfile%\\Miniconda3\\Library\\include;%INCLUDE%", LIB = "%UserProfile%\\Miniconda3\\Library\\lib;%LIB%" }
0 commit comments