adds option to ignore TCL/Tk framework installs on OS X

This commit is contained in:
Darren Dale 2016-03-14 13:38:42 -04:00
parent c95de4e61f
commit e9c4ee3354

View File

@ -580,7 +580,8 @@ class pil_build_ext(build_ext):
"PIL._webp", ["_webp.c"], libraries=libs, define_macros=defs))
if feature.tcl and feature.tk:
if sys.platform == "darwin":
if (sys.platform == "darwin" and
os.environ.get('IGNORE_OSX_TCLTK_FRAMEWORKS', False)==False):
# locate Tcl/Tk frameworks
frameworks = []
framework_roots = [