Skip to content

Commit

Permalink
work around bad Tkinter version report
Browse files Browse the repository at this point in the history
  • Loading branch information
ddale committed Jun 5, 2011
1 parent c96a7d0 commit 04b4e50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setupext.py
Expand Up @@ -843,8 +843,12 @@ def check_for_tk():
gotit = False

if gotit:
try:
tk_v = Tkinter.__version__.split()[-2]
except IndexError:
tk_v = 'version not identified'
print_status("Tkinter", "Tkinter: %s, Tk: %s, Tcl: %s" %
(Tkinter.__version__.split()[-2], Tkinter.TkVersion, Tkinter.TclVersion))
(tk_v, Tkinter.TkVersion, Tkinter.TclVersion))
else:
print_status("Tkinter", "no")
if explanation is not None:
Expand Down

1 comment on commit 04b4e50

@samueljohn
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this already pushed to the PyPi list?
Because, when I pip install matplotlib, I get an error that would be fixed by this commit.

Please sign in to comment.