Skip to content

Commit 607ef05

Browse files
committed
commenting windows for now
1 parent 12d5092 commit 607ef05

File tree

1 file changed

+34
-13
lines changed

1 file changed

+34
-13
lines changed

quaddtype/pyproject.toml

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ skip = ["*-musllinux*", "pp*", "cp36-*", "cp37-*", "cp38-*", "cp39-*"]
3030
test-command = """
3131
python -c "import platform; print('Python version:', platform.python_version())"
3232
python -c "import sys; print('sys.platform:', sys.platform)"
33-
ldd --version
3433
uname -a
3534
pip install {package}[test]
3635
pytest {project}/tests
@@ -44,28 +43,50 @@ set -ex
4443
yum install -y wget
4544
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
4645
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
4857
ls -l $HOME/miniconda/include/sleef.h
4958
"""
5059
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" }
5160
repair-wheel-command = "auditwheel repair -w {dest_dir} --plat manylinux_2_28_x86_64 {wheel}"
5261

5362
[tool.cibuildwheel.macos]
5463
before-all = """
64+
set -ex
5565
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
5666
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
5878
ls -l $HOME/miniconda/include/sleef.h
5979
"""
6080
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}"
6182

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

Comments
 (0)