[MacPorts] #45310: py27-pyobjc build fails with setuptools 6

MacPorts noreply at macports.org
Wed Oct 15 04:26:04 PDT 2014


#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?diff2=c0243cfb55d2&at=default
 . 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


More information about the macports-tickets mailing list