Fix pil install
This commit is contained in:
parent
b79139e26c
commit
c7108a9342
2 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ branches:
|
||||||
# install libjpeg-dev for PIL to handle JPEGs
|
# install libjpeg-dev for PIL to handle JPEGs
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -q -y
|
- sudo apt-get update -q -y
|
||||||
|
- sudo apt-get upgrade -q -y
|
||||||
- sudo apt-get install -q -y libjpeg-dev
|
- sudo apt-get install -q -y libjpeg-dev
|
||||||
- sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
|
- sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
|
||||||
- sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
|
- sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
|
||||||
|
|
|
@ -4,5 +4,5 @@ set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
if python -c 'import sys; sys.exit(0 if sys.hexversion<0x03000000 else 1)'; then
|
if python -c 'import sys; sys.exit(0 if sys.hexversion<0x03000000 else 1)'; then
|
||||||
pip install PIL
|
pip --allow-all-external install PIL
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue