Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
1a67a36f
Unverified
Commit
1a67a36f
authored
Nov 03, 2022
by
Nikita Titov
Committed by
GitHub
Nov 03, 2022
Browse files
[ci] prefer CPython in Linux and macOS test environment (#5555)
parent
fc47f5e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
.ci/test.sh
.ci/test.sh
+4
-5
No files found.
.ci/test.sh
View file @
1a67a36f
...
@@ -29,7 +29,7 @@ if [[ "$TASK" == "cpp-tests" ]]; then
...
@@ -29,7 +29,7 @@ if [[ "$TASK" == "cpp-tests" ]]; then
exit
0
exit
0
fi
fi
conda create
-q
-y
-n
$CONDA_ENV
python
=
$PYTHON_VERSION
conda create
-q
-y
-n
$CONDA_ENV
"
python=
$PYTHON_VERSION
[build=*cpython]"
source
activate
$CONDA_ENV
source
activate
$CONDA_ENV
cd
$BUILD_DIRECTORY
cd
$BUILD_DIRECTORY
...
@@ -125,6 +125,7 @@ else
...
@@ -125,6 +125,7 @@ else
DEPENDENCIES
=
"dask=2022.7.0 distributed=2022.7.0 scipy<1.9"
DEPENDENCIES
=
"dask=2022.7.0 distributed=2022.7.0 scipy<1.9"
fi
fi
# re-including python=version[build=*cpython] to ensure that conda doesn't fall back to pypy
conda
install
-q
-y
-n
$CONDA_ENV
\
conda
install
-q
-y
-n
$CONDA_ENV
\
cloudpickle
\
cloudpickle
\
${
DEPENDENCIES
}
\
${
DEPENDENCIES
}
\
...
@@ -134,12 +135,10 @@ conda install -q -y -n $CONDA_ENV \
...
@@ -134,12 +135,10 @@ conda install -q -y -n $CONDA_ENV \
pandas
\
pandas
\
psutil
\
psutil
\
pytest
\
pytest
\
"python=
$PYTHON_VERSION
[build=*cpython]"
\
python-graphviz
\
scikit-learn
||
exit
-1
scikit-learn
||
exit
-1
# python-graphviz has to be installed separately to prevent conda from downgrading to pypy
conda
install
-q
-y
-n
$CONDA_ENV
\
python-graphviz
||
exit
-1
if
[[
$OS_NAME
==
"macos"
]]
&&
[[
$COMPILER
==
"clang"
]]
;
then
if
[[
$OS_NAME
==
"macos"
]]
&&
[[
$COMPILER
==
"clang"
]]
;
then
# fix "OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized." (OpenMP library conflict due to conda's MKL)
# fix "OMP: Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized." (OpenMP library conflict due to conda's MKL)
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
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment