File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if [[ "$TASK" == "cpp-tests" ]]; then
29
29
exit 0
30
30
fi
31
31
32
- conda create -q -y -n $CONDA_ENV python=$PYTHON_VERSION
32
+ conda create -q -y -n $CONDA_ENV " python=$PYTHON_VERSION [build=*cpython] "
33
33
source activate $CONDA_ENV
34
34
35
35
cd $BUILD_DIRECTORY
125
125
DEPENDENCIES=" dask=2022.7.0 distributed=2022.7.0 scipy<1.9"
126
126
fi
127
127
128
+ # re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
128
129
conda install -q -y -n $CONDA_ENV \
129
130
cloudpickle \
130
131
${DEPENDENCIES} \
@@ -134,12 +135,10 @@ conda install -q -y -n $CONDA_ENV \
134
135
pandas \
135
136
psutil \
136
137
pytest \
138
+ " python=$PYTHON_VERSION [build=*cpython]" \
139
+ python-graphviz \
137
140
scikit-learn || exit -1
138
141
139
- # python-graphviz has to be installed separately to prevent conda from downgrading to pypy
140
- conda install -q -y -n $CONDA_ENV \
141
- python-graphviz || exit -1
142
-
143
142
if [[ $OS_NAME == " macos" ]] && [[ $COMPILER == " clang" ]]; then
144
143
# fix "OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized." (OpenMP library conflict due to conda's MKL)
145
144
for LIBOMP_ALIAS in libgomp.dylib libiomp5.dylib libomp.dylib; do sudo ln -sf " $( brew --cellar libomp) " /* /lib/libomp.dylib $CONDA_PREFIX /lib/$LIBOMP_ALIAS || exit -1; done
You can’t perform that action at this time.
0 commit comments