Skip to content

Commit f2cfe40

Browse files
committed
test
1 parent 44e2f45 commit f2cfe40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/scripts/setup-env.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ conda activate ci
3737
conda install --quiet --yes libjpeg-turbo -c pytorch
3838
pip install --progress-bar=off --upgrade setuptools==72.1.0
3939

40-
# set ld_library_path - make sure so libraries are loaded from there
41-
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
40+
# set ld_library_path - make sure so libraries have precedence
41+
if [[ "${OS_TYPE}" == linux ]]; then
42+
export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
43+
fi
4244

4345
# See https://github.com/pytorch/vision/issues/6790
4446
if [[ "${PYTHON_VERSION}" != "3.11" ]]; then

0 commit comments

Comments
 (0)