Opened 13 years ago

Closed 13 years ago

#29893 closed defect (fixed)

improve or remove parsing of Tkinter.__version__ required for newer python versions

Reported by: vbkhp@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: py27-matplotlib

Description (last modified by jmroot (Joshua Root))

due to the cpython hg transition the version attribute of tkinter has been removed in python 3 and in the python 2.7 rc1 it does not contain a number anymore.

This breaks the py27-matplotlib build which parses version and expects a number:

see https://github.com/matplotlib/matplotlib/commit/04b4e5091978 on how to fix it.

OPTIONAL BACKEND DEPENDENCIES
                libpng: 1.2.44
Traceback (most recent call last):
  File "./setup.py", line 162, in <module>
    if check_for_tk() or (options['build_tkagg'] is True):
  File "/build/buildd/matplotlib-1.0.1/setupext.py", line 832, in check_for_tk
    (Tkinter.__version__.split()[-2], Tkinter.TkVersion, Tkinter.TclVersion))
IndexError: list index out of range

Change History (3)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: changed from macports-tickets@… to ram@…
Port: py27-matplotlib added

Please remember to fill in the Port field and cc the maintainers.

comment:2 Changed 13 years ago by skymoo (Adam Mercer)

Status: newassigned

comment:3 Changed 13 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

upstream patch applied in r79644, thanks

Note: See TracTickets for help on using tickets.