From 5d13908776378b519bdefba0bffb03679659a16e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 14 Oct 2020 18:27:55 +0530 Subject: [PATCH] github actions CI updated to python 3.9 Pillow wheel currently not available for python 3.9. So tries to install from source and fails on missing zlib. So install zlib in brew and make it available via PKG_CONFIG_PATH. Apparently, this wont be necessary after Pillow 8, but who knows. --- .github/workflows/ci.py | 3 +++ Brewfile | 1 + 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index a01253e65..c225eae9c 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -40,6 +40,9 @@ def install_deps(): if is_bundle: install_bundle() else: + if is_macos: + # needed for zlib for pillow, should not be needed after pillow 8.0 + os.environ['PKG_CONFIG_PATH'] = '/usr/local/opt/zlib/lib/pkgconfig' run('pip3 install Pillow pygments') diff --git a/Brewfile b/Brewfile index 7de76cb93..11f1e8e21 100644 --- a/Brewfile +++ b/Brewfile @@ -1,4 +1,5 @@ pkg-config +zlib python imagemagick harfbuzz