From 58b8ccfc910525ded190fc24d00f3dc757726317 Mon Sep 17 00:00:00 2001 From: Laurence Rowe Date: Fri, 24 Sep 2021 14:34:34 -0700 Subject: [PATCH 1/2] Add workaround for building Pillow on Mac. Alternatively perhaps Pillow can be upgraded to the latest version which installs successfully from a binary wheel. --- README.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.rst b/README.rst index 31775793c..638d65693 100644 --- a/README.rst +++ b/README.rst @@ -118,6 +118,13 @@ Application Installation you may need to add the ``brew``-installed Postgres headers, usually ``-L/usr/local/opt/postgresql@11/lib``, to the ``LDFLAGS`` in addition to the ones given by ``pg_config --ldflags``. + If you have errors building that look like this:: + + The headers or library files could not be found for zlib, + a required dependency when compiling Pillow from source. + + you mak need to run `CPATH=`xcrun --show-sdk-path`/usr/include pip install -e '.[dev]'` so that zlib headers can be found. + 3. Build Application .. code-block:: bash From c66d031c542bbdd50ab30d90fec8c98e7daf214e Mon Sep 17 00:00:00 2001 From: Laurence Rowe Date: Tue, 5 Oct 2021 11:53:00 -0700 Subject: [PATCH 2/2] Update README.rst --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 638d65693..84cb1e267 100644 --- a/README.rst +++ b/README.rst @@ -123,7 +123,7 @@ Application Installation The headers or library files could not be found for zlib, a required dependency when compiling Pillow from source. - you mak need to run `CPATH=`xcrun --show-sdk-path`/usr/include pip install -e '.[dev]'` so that zlib headers can be found. + you may need to run `CPATH=`xcrun --show-sdk-path`/usr/include pip install -e '.[dev]'` so that zlib headers can be found. 3. Build Application .. code-block:: bash