Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ if [[ "$(uname)" == Darwin ]]; then
brew uninstall --ignore-dependencies --force $pkg || true
done

conda install -yq wget
conda install -y wget
fi

if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
conda install libpng libwebp -yq
conda install libpng libwebp -y
# Installing webp also installs a non-turbo jpeg, so we uninstall jpeg stuff
# before re-installing them
conda uninstall libjpeg-turbo libjpeg -y
conda install -yq ffmpeg=4.2 libjpeg-turbo -c pytorch
conda install -y ffmpeg=4.2 -c pytorch
conda install -y libjpeg-turbo -c pytorch

# Copy binaries to be included in the wheel distribution
if [[ "$OSTYPE" == "msys" ]]; then
Expand All @@ -28,11 +29,11 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
else

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

conda install libwebp -yq
conda install libwebp -y
conda install libjpeg-turbo -c pytorch
yum install -y freetype gnutls
pip install auditwheel
Expand Down
Loading