Skip to content

Commit

Permalink
Add 3.13t wheel builds (pytorch#8898)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Feb 5, 2025
1 parent 947722a commit 927c4e3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/bash

CONDA_CHANNEL=""

# python python-freethreading build use conda-forge
if [[ "${PYTHON_VERSION: -1}" == "t" ]]; then
CONDA_CHANNEL="-c conda-forge"
fi

if [[ "$(uname)" == Darwin ]]; then
# Uninstall Conflicting jpeg brew formulae
jpeg_packages=$(brew list | grep jpeg)
Expand All @@ -13,7 +20,7 @@ if [[ "$(uname)" == Darwin ]]; then
fi

if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
conda install libpng libwebp -yq
conda install -yv libpng libwebp ${CONDA_CHANNEL}
# Installing webp also installs a non-turbo jpeg, so we uninstall jpeg stuff
# before re-installing them
conda uninstall libjpeg-turbo libjpeg -y
Expand All @@ -28,11 +35,11 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
else

if [[ "$ARCH" == "aarch64" ]]; then
conda install libpng -yq
conda install -yv libpng ${CONDA_CHANNEL}
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch-nightly
fi

conda install libwebp -yq
conda install -v libwebp ${CONDA_CHANNEL}
conda install libjpeg-turbo -c pytorch
yum install -y freetype gnutls
pip install auditwheel
Expand Down

0 comments on commit 927c4e3

Please sign in to comment.