diff --git a/setup.py b/setup.py index a7a73473f..51566bf8e 100644 --- a/setup.py +++ b/setup.py @@ -644,7 +644,8 @@ class pil_build_ext(build_ext): 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 = [