Skip to content

Commit 574747d

Browse files
committed
Add hint for ZLIB_ROOT env var
1 parent d5482fa commit 574747d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-graalpython/modules/ginstall.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ def Pillow(**kwargs):
371371
zlib_root = os.environ.get("ZLIB_ROOT", None)
372372
if zlib_root:
373373
build_cmd += ["-I", os.path.join(zlib_root, "include"), "-L", os.path.join(zlib_root, "lib")]
374+
else:
375+
info("If Pillow installation fails due to missing zlib, try to set environment variable ZLIB_ROOT.")
374376
install_from_pypi("Pillow==6.2.0", build_cmd=build_cmd, env=build_env, **kwargs)
375377

376378
@pip_package()

0 commit comments

Comments
 (0)