File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ CONDA_CHANNEL=" "
4+
5+ # python python-freethreading build use conda-forge
6+ if [[ " ${PYTHON_VERSION: -1} " == " t" ]]; then
7+ CONDA_CHANNEL=" -c conda-forge"
8+ fi
9+
310if [[ " $( uname) " == Darwin ]]; then
411 # Uninstall Conflicting jpeg brew formulae
512 jpeg_packages=$( brew list | grep jpeg)
@@ -13,7 +20,7 @@ if [[ "$(uname)" == Darwin ]]; then
1320fi
1421
1522if [[ " $( uname) " == Darwin || " $OSTYPE " == " msys" ]]; then
16- conda install libpng libwebp -yq
23+ conda install -yv libpng libwebp ${CONDA_CHANNEL}
1724 # Installing webp also installs a non-turbo jpeg, so we uninstall jpeg stuff
1825 # before re-installing them
1926 conda uninstall libjpeg-turbo libjpeg -y
@@ -28,11 +35,11 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
2835else
2936
3037 if [[ " $ARCH " == " aarch64" ]]; then
31- conda install libpng -yq
38+ conda install -yv libpng ${CONDA_CHANNEL}
3239 conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch-nightly
3340 fi
3441
35- conda install libwebp -yq
42+ conda install -v libwebp ${CONDA_CHANNEL}
3643 conda install libjpeg-turbo -c pytorch
3744 yum install -y freetype gnutls
3845 pip install auditwheel
You can’t perform that action at this time.
0 commit comments