Skip to content

Commit

Permalink
Fix aarch64 builds (#7872)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Aug 23, 2023
1 parent c486bb1 commit 02d3d6d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "$(uname)" == Darwin ]]; then
conda install -yq wget
fi

if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" || "$ARCH" == "aarch64" ]]; then
if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
# Install libpng from Anaconda (defaults)
conda install libpng -yq
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch
Expand All @@ -22,8 +22,13 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" || "$ARCH" == "aarch64" ]]; th
bin_path=$(dirname $python_exec)
cp "$bin_path/Library/bin/libjpeg.dll" torchvision
fi

else

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

# Install native CentOS libJPEG, freetype and GnuTLS
yum install -y libjpeg-turbo-devel freetype gnutls

Expand Down

0 comments on commit 02d3d6d

Please sign in to comment.