Skip to content

Remove quiet option from pre_build_script. Install libjpeg-turbo and ffmpeg in 2 separate steps #8950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 4, 2025
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