mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Remove outdated OS scripts, point docs to Dockerfiles
This commit is contained in:
parent
3e3a73749e
commit
23fa3c6979
|
@ -1,43 +0,0 @@
|
|||
# This is a sample Dockerfile to build Pillow on Alpine Linux
|
||||
# with all/most of the dependencies working.
|
||||
#
|
||||
# Tcl/Tk isn't detecting
|
||||
# Freetype has different metrics so tests are failing.
|
||||
# sudo and bash are required for the webp build script.
|
||||
|
||||
FROM alpine
|
||||
USER root
|
||||
|
||||
RUN apk --no-cache add python \
|
||||
build-base \
|
||||
python-dev \
|
||||
py-pip \
|
||||
# Pillow dependencies
|
||||
jpeg-dev \
|
||||
zlib-dev \
|
||||
freetype-dev \
|
||||
lcms2-dev \
|
||||
openjpeg-dev \
|
||||
tiff-dev \
|
||||
tk-dev \
|
||||
tcl-dev
|
||||
|
||||
# install from pip, without webp
|
||||
#RUN LIBRARY_PATH=/lib:/usr/lib /bin/sh -c "pip install Pillow"
|
||||
|
||||
# install from git, run tests, including webp
|
||||
RUN apk --no-cache add git \
|
||||
bash \
|
||||
sudo
|
||||
|
||||
RUN git clone https://github.com/python-pillow/Pillow.git /Pillow
|
||||
RUN pip install virtualenv && virtualenv /vpy && source /vpy/bin/activate && pip install nose
|
||||
|
||||
RUN echo "#!/bin/bash" >> /test && \
|
||||
echo "source /vpy/bin/activate && cd /Pillow " >> test && \
|
||||
echo "pushd depends && ./install_webp.sh && ./install_imagequant.sh && popd" >> test && \
|
||||
echo "LIBRARY_PATH=/lib:/usr/lib make install && make test" >> test
|
||||
|
||||
RUN chmod +x /test
|
||||
|
||||
CMD ["/test"]
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Installs all of the dependencies for Pillow for Debian 8.2
|
||||
# for both system Pythons 2.7 and 3.4
|
||||
#
|
||||
# Also works for Raspbian Jessie
|
||||
#
|
||||
|
||||
sudo apt-get -y install python-dev python-setuptools \
|
||||
python3-dev python-virtualenv cmake
|
||||
sudo apt-get -y install libtiff5-dev libjpeg62-turbo-dev zlib1g-dev \
|
||||
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev \
|
||||
python-tk python3-tk libharfbuzz-dev libfribidi-dev
|
||||
|
||||
./install_openjpeg.sh
|
||||
./install_imagequant.sh
|
||||
./install_raqm.sh
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Installs all of the dependencies for Pillow for Fedora 23
|
||||
# for both system Pythons 2.7 and 3.4
|
||||
#
|
||||
# note that Fedora does ship packages for Pillow as python-pillow
|
||||
|
||||
# this is a workaround for
|
||||
# "gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory"
|
||||
# errors when compiling.
|
||||
sudo dnf install redhat-rpm-config
|
||||
|
||||
sudo dnf install python-devel python3-devel python-virtualenv make gcc
|
||||
|
||||
sudo dnf install libtiff-devel libjpeg-devel zlib-devel freetype-devel \
|
||||
lcms2-devel libwebp-devel openjpeg2-devel tkinter python3-tkinter \
|
||||
tcl-devel tk-devel harfbuzz-devel fribidi-devel libraqm-devel
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Installs all of the dependencies for Pillow for Freebsd 10.x
|
||||
# for both system Pythons 2.7 and 3.4
|
||||
#
|
||||
sudo pkg install python2 python3 py27-pip py27-virtualenv wget cmake
|
||||
|
||||
# Openjpeg fails badly using the openjpeg package.
|
||||
# I can't find a python3.4 version of tkinter
|
||||
sudo pkg install jpeg-turbo tiff webp lcms2 freetype2 harfbuzz fribidi py27-tkinter
|
||||
|
||||
./install_raqm_cmake.sh
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Installs all of the dependencies for Pillow for Ubuntu 12.04
|
||||
# for both system Pythons 2.7 and 3.2
|
||||
#
|
||||
|
||||
sudo apt-get -y install python-dev python-setuptools \
|
||||
python3-dev python-virtualenv cmake
|
||||
sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \
|
||||
libfreetype6-dev liblcms2-dev tcl8.5-dev \
|
||||
tk8.5-dev python-tk python3-tk
|
||||
|
||||
|
||||
./install_openjpeg.sh
|
||||
./install_webp.sh
|
||||
./install_imagequant.sh
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Installs all of the dependencies for Pillow for Ubuntu 14.04
|
||||
# for both system Pythons 2.7 and 3.4
|
||||
#
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install python-dev python-setuptools \
|
||||
python3-dev python-virtualenv cmake
|
||||
sudo apt-get -y install libtiff5-dev libjpeg8-dev zlib1g-dev \
|
||||
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev \
|
||||
python-tk python3-tk libharfbuzz-dev libfribidi-dev
|
||||
|
||||
./install_openjpeg.sh
|
||||
./install_imagequant.sh
|
||||
./install_raqm.sh
|
|
@ -123,10 +123,9 @@ External Libraries
|
|||
|
||||
.. note::
|
||||
|
||||
There are scripts to install the dependencies for some operating
|
||||
systems included in the ``depends`` directory. Also see the
|
||||
Dockerfiles in our `docker images repo
|
||||
<https://github.com/python-pillow/docker-images>`_.
|
||||
There are Dockerfiles in our `Docker images repo
|
||||
<https://github.com/python-pillow/docker-images>`_ to install the
|
||||
dependencies for some operating systems.
|
||||
|
||||
Many of Pillow's features require external libraries:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user