[MacPorts] #42512: Tkinter not working with macports-installed pypy

MacPorts noreply at macports.org
Sun Feb 16 06:14:04 PST 2014


#42512: Tkinter not working with macports-installed pypy
-----------------------------+-------------------
  Reporter:  macports.org@…  |      Owner:  jmr@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.2.1
Resolution:                  |   Keywords:
      Port:  pypy            |
-----------------------------+-------------------

Comment (by macports.org@…):

 Is there any specific reason? If it can't be fixed, can it be patched
 somehow to have `import _tkinter` raise `ImportError` instead of blowing
 up with `IOError`?

 My original issue was actually trying to install Pillow whose `setup.py`
 performs a bunch of checks for available libraries. [https://github.com
 /python-imaging/Pillow/blob/master/setup.py#L81 The tcl/tk support check
 it's a fairly common pattern]:
 {{{
 try:
     import _tkinter
 except ImportError:
     _tkinter = None
 }}}
 but because this yields an `IOError` the install fails entirely instead of
 simply marking tkinter as unavailable.

-- 
Ticket URL: <https://trac.macports.org/ticket/42512#comment:4>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list