Skip to content

Add libpng-devel for build-wheels #7434

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ setup_wheel_python() {
# Install libpng from Anaconda (defaults)
conda install ${CONDA_CHANNEL_FLAGS} libpng "jpeg<=9b" -y
else
# Install native CentOS libJPEG, freetype and GnuTLS
yum install -y libjpeg-turbo-devel freetype gnutls
# Install native CentOS libPNG, libJPEG, freetype and GnuTLS
yum install -y libpng-devel libjpeg-turbo-devel freetype gnutls
case "$PYTHON_VERSION" in
3.8) python_abi=cp38-cp38 ;;
3.9) python_abi=cp39-cp39 ;;
Expand Down
4 changes: 2 additions & 2 deletions packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ if [[ "$(uname)" == Darwin || "$OSTYPE" == "msys" ]]; then
conda install -yq ffmpeg=4.2 -c pytorch
conda install -yq wget
else
# Install native CentOS libJPEG, freetype and GnuTLS
yum install -y libjpeg-turbo-devel freetype gnutls
# Install native CentOS libPNG, libJPEG, freetype and GnuTLS
yum install -y libpng-devel libjpeg-turbo-devel freetype gnutls

# Download all the dependencies required to compile image and video_reader
# extensions
Expand Down