Opened 13 years ago

Last modified 13 years ago

#29893 closed defect

improve or remove parsing of Tkinter.__version__ required for newer python versions — at Version 1

Reported by: vbkhp@… Owned by: ram@…
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 (1)

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.

Note: See TracTickets for help on using tickets.