#45310: py27-pyobjc build fails with setuptools 6 -------------------------------+-------------------------------- Reporter: paulvanlorenzo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.1 Resolution: | Keywords: Port: py27-pyobjc | -------------------------------+-------------------------------- Comment (by wichert@…): This is caused by a change in setuptools which changes the return value from a dictionary to a set: https://bitbucket.org/pypa/setuptools/diff/setuptools/command/install_lib.py... . A workaround is to modify pyobjc-core's setup.py to handle both situations: {{{ #!python def get_exclusions(self): result = install_lib.install_lib.get_exclusions(self) def add(result, fn): if isinstance(result, dict): result[fn] = 1 else: result.add(fn) for fn in install_lib.orig.install_lib.get_outputs(self): if 'PyObjCTest' in fn: add(result, fn) for fn in os.listdir('PyObjCTest'): add(result, os.path.join('PyObjCTest', fn)) add(result, os.path.join(self.install_dir, 'PyObjCTest', fn)) return result }}} -- Ticket URL: <https://trac.macports.org/ticket/45310#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X