Skip to content

Commit a216c7b

Browse files
authored
Update pre_build_script.sh
1 parent 947722a commit a216c7b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packaging/pre_build_script.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
22

3+
CONDA_CHANNEL=""
4+
if [["$PYTHON_VERSION" == "3.13t" ]]; then
5+
CONDA_CHANNEL="-c conda-forge"
6+
fi
7+
38
if [[ "$(uname)" == Darwin ]]; then
49
# Uninstall Conflicting jpeg brew formulae
510
jpeg_packages=$(brew list | grep jpeg)
@@ -32,7 +37,7 @@ else
3237
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch-nightly
3338
fi
3439

35-
conda install libwebp -yq
40+
conda install -y libwebp ${CONDA_CHANNEL}
3641
conda install libjpeg-turbo -c pytorch
3742
yum install -y freetype gnutls
3843
pip install auditwheel

0 commit comments

Comments
 (0)