From d306d01c5edfa6fce6ce372ae207917d063238d6 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Sat, 5 Jul 2014 11:50:37 -0700 Subject: [PATCH] Document environment variable method for pip, #720 [ci skip] --- docs/installation.rst | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 8abbd6679..a61213e15 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -79,15 +79,21 @@ Many of Pillow's features require external libraries: * Pillow has been tested with openjpeg **2.0.0** and **2.1.0**. -If the prerequisites are installed in the standard library locations for your -machine (e.g. :file:`/usr` or :file:`/usr/local`), no additional configuration -should be required. If they are installed in a non-standard location, you may -need to configure setuptools to use those locations (i.e. by editing -:file:`setup.py` and/or :file:`setup.cfg`). Once you have installed the -prerequisites, run:: +Once you have installed the prerequisites,run:: $ pip install Pillow +If the prerequisites are installed in the standard library locations +for your machine (e.g. :file:`/usr` or :file:`/usr/local`), no +additional configuration should be required. If they are installed in +a non-standard location, you may need to configure setuptools to use +those locations by editing :file:`setup.py` or +:file:`setup.cfg`, or by adding environment variables on the command +line:: + + $ CFLAGS="-I/usr/pkg/include" pip install pillow + + Linux installation ------------------