Skip to content

Commit 5333273

Browse files
committed
removing re-init of conda
1 parent 00da2c7 commit 5333273

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

quaddtype/pyproject.toml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,10 @@ test = [
2727
[tool.cibuildwheel]
2828
archs = ["auto64"]
2929
skip = ["*-musllinux*", "pp*", "cp36-*", "cp37-*", "cp38-*"]
30-
environment = { PATH = "$PATH:/usr/share/miniconda3/bin" }
3130

32-
[tool.cibuildwheel.linux]
33-
before-all = """
34-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
35-
bash miniconda.sh -b -p /usr/share/miniconda3
36-
export PATH="/usr/share/miniconda3/bin:$PATH"
37-
conda config --add channels conda-forge
38-
conda config --set channel_priority strict
39-
conda install -y sleef
40-
"""
41-
42-
[tool.cibuildwheel.macos]
43-
before-all = """
44-
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
45-
bash miniconda.sh -b -p $HOME/miniconda3
46-
export PATH="$HOME/miniconda3/bin:$PATH"
47-
conda config --add channels conda-forge
48-
conda config --set channel_priority strict
49-
conda install -y sleef
50-
"""
31+
# The environment variable ensures the conda installation is available
32+
environment = { PATH = "$CONDA_PREFIX/bin:$PATH", LD_LIBRARY_PATH = "$CONDA_PREFIX/lib:$LD_LIBRARY_PATH" }
5133

5234
[tool.cibuildwheel.windows]
53-
before-all = """
54-
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe', 'miniconda.exe')"
55-
start /wait "" miniconda.exe /S /D=C:\\Miniconda3
56-
set PATH=C:\\Miniconda3;C:\\Miniconda3\\Scripts;%PATH%
57-
conda config --add channels conda-forge
58-
conda config --set channel_priority strict
59-
conda install -y sleef
60-
"""
6135
before-build = "pip install delvewheel"
6236
repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel}"

0 commit comments

Comments
 (0)