From 999f5aa991954f831158f83f39d9a48f7e178fbc Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 30 Jun 2022 22:49:52 +0200 Subject: [PATCH] Add fallback for unset CC env-var in pillow_mingw.patch --- pillow_mingw.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pillow_mingw.patch b/pillow_mingw.patch index 21080d8..2d98dbf 100644 --- a/pillow_mingw.patch +++ b/pillow_mingw.patch @@ -6,7 +6,7 @@ diff -rupN --no-dereference Pillow-9.1.1/setup.py Pillow-9.1.1-new/setup.py -PLATFORM_MINGW = os.name == "nt" and "GCC" in sys.version -+PLATFORM_MINGW = "mingw32" in os.getenv("CC") ++PLATFORM_MINGW = "mingw32" in os.getenv("CC", []) PLATFORM_PYPY = hasattr(sys, "pypy_version_info")