Skip to content

Commit 927c4e3

Browse files
authored
Add 3.13t wheel builds (#8898)
1 parent 947722a commit 927c4e3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packaging/pre_build_script.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
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+
310
if [[ "$(uname)" == Darwin ]]; then
411
# Uninstall Conflicting jpeg brew formulae
512
jpeg_packages=$(brew list | grep jpeg)
@@ -13,7 +20,7 @@ if [[ "$(uname)" == Darwin ]]; then
1320
fi
1421

1522
if [[ "$(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
2835
else
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

0 commit comments

Comments
 (0)