From 482e56c51ee69b27cc9d900eea7ec34ba4ec0221 Mon Sep 17 00:00:00 2001 From: Aaron Kavlie Date: Mon, 16 Jul 2012 10:43:27 -0700 Subject: [PATCH] Add Mac OS X PIL installation instructions --- docs/scenarios/imaging.rst | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/scenarios/imaging.rst b/docs/scenarios/imaging.rst index d1a4c0cb6..6a5c01780 100644 --- a/docs/scenarios/imaging.rst +++ b/docs/scenarios/imaging.rst @@ -35,8 +35,22 @@ Ubuntu 11.04 Installing on Mac OS X ~~~~~~~~~~~~~~~~~~~~~~ -.. todo:: - Notes on installing on Mac OS X +PIP doesn't know about the Mac OS X Freetype paths. To rectify that: + +.. code-block:: bash + + $ ln -s /usr/X11/include/freetype2 /usr/local/include/ + $ ln -s /usr/X11/include/ft2build.h /usr/local/include/ + $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/ + $ ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib + +then: + +.. code-block:: bash + + $ brew install libjpeg + $ pip install PIL + Installing on Windows ~~~~~~~~~~~~~~~~~~~~~