--- setupext.py.orig 2014-08-25 21:24:27.000000000 -0500 +++ setupext.py 2014-09-18 06:38:30.000000000 -0500 @@ -1494,6 +1494,18 @@ ext.library_dirs.extend([os.path.join(sys.prefix, 'dlls')]) elif sys.platform == 'darwin': + tcl_lib_dir = tk_lib_dir = os.path.join(get_base_dirs()[0], 'lib') + result = self.parse_tcl_config(tcl_lib_dir, tk_lib_dir) + if result is None: + raise SystemExit("Tcl/Tk not found, aborting") + + (tcl_lib_dir, tcl_inc_dir, tcl_lib, + tk_lib_dir, tk_inc_dir, tk_lib) = result + ext.include_dirs.extend([tcl_inc_dir, tk_inc_dir]) + ext.library_dirs.extend([tcl_lib_dir, tk_lib_dir]) + ext.libraries.extend([tcl_lib, tk_lib]) + + return # this config section lifted directly from Imaging - thanks to # the effbot! @@ -1735,6 +1747,9 @@ name = "gtk3agg" def check_requirements(self): + if self.get_config() is False: + raise CheckFailed("skipping due to configuration") + if 'TRAVIS' in os.environ: raise CheckFailed("Can't build with Travis") @@ -1800,6 +1815,9 @@ name = "gtk3cairo" def check_requirements(self): + if self.get_config() is False: + raise CheckFailed("skipping due to configuration") + if 'TRAVIS' in os.environ: raise CheckFailed("Can't build with Travis") @@ -1828,6 +1846,9 @@ name = "wxagg" def check_requirements(self): + if self.get_config() is False: + raise CheckFailed("skipping due to configuration") + try: import wxversion except ImportError: @@ -2031,6 +2052,9 @@ name = "cairo" def check_requirements(self): + if self.get_config() is False: + raise CheckFailed("skipping due to configuration") + try: import cairocffi except ImportError: