--- setup.py.orig 2017-09-19 17:32:02.000000000 +1000 +++ setup.py 2017-09-22 10:19:34.000000000 +1000 @@ -31,7 +31,7 @@ COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) # This global variable is used to hold the list of modules to be disabled. -disabled_module_list = [] +disabled_module_list = ["_tkinter", "_gdbm"] def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (after any relative @@ -1667,6 +1667,9 @@ def detect_tkinter(self, inc_dirs, lib_dirs): # The _tkinter module. + # Skip building; provided by a separate port in MacPorts. + return + # Check whether --with-tcltk-includes and --with-tcltk-libs were # configured or passed into the make target. If so, use these values # to build tkinter and bypass the searches for Tcl and TK in standard