Skip to content

Commit

Permalink
#43 #45 continued (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
myselfhimself committed Dec 3, 2020
1 parent b280b5d commit 1a63e60
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions manylinux/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ PYBIN_PREFIX=${PYBIN_PREFIX:-cp3}
yum check-update || { echo "yum check-update failed but manylinux build-wheels script will continue" ; }
yum install fftw-devel curl-devel libpng-devel zlib-devel libgomp wget -y || { echo "Fatal yum dependencies install error" ; exit 1; }

# Install slightly newer libpng12 includes if too old, to avoid c++11 problem listed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676157
if [ "1.2.51" \> "$(yum info libpng-devel | grep Version | cut -d':' -f2 | awk '{print $1}' | uniq)" ]; then
cd /tmp/
ls -l
curl -o libpng-1.2.51.tar.gz -s "https://master.dl.sourceforge.net/project/libpng/libpng12/older-releases/1.2.51/libpng-1.2.51.tar.gz?viasf=1"
ls -l
tar xzvf libpng*
rm libpng*.tar.gz
mv libpng* libpng12
rm -rf /usr/include/libpng12
mv libpng12 /usr/include/
fi
# # Install slightly newer libpng12 includes if too old, to avoid c++11 problem listed here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676157
# if [ "1.2.51" \> "$(yum info libpng-devel | grep Version | cut -d':' -f2 | awk '{print $1}' | uniq)" ]; then
# cd /tmp/
# ls -l
# curl -o libpng-1.2.51.tar.gz -s "https://master.dl.sourceforge.net/project/libpng/libpng12/older-releases/1.2.51/libpng-1.2.51.tar.gz?viasf=1"
# ls -l
# tar xzvf libpng*
# rm libpng*.tar.gz
# mv libpng* libpng12
# rm -rf /usr/include/libpng12
# mv libpng12 /usr/include/
# fi

# Allow building Pillow from source if needed (on old Centos builds)
# Requirements inspired from Pillow's official Docker recipes at https://github.com/python-pillow/docker-images/blob/master/centos-6-amd64/Dockerfile
Expand Down

0 comments on commit 1a63e60

Please sign in to comment.