[MacPorts] #29893: improve or remove parsing of Tkinter.__version__ required for newer python versions
#29893: improve or remove parsing of Tkinter.__version__ required for newer python versions -----------------------------+---------------------------------------------- Reporter: vbkhp@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: -----------------------------+---------------------------------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/29893> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29893: improve or remove parsing of Tkinter.__version__ required for newer python versions -----------------------------+---------------------------------------------- Reporter: vbkhp@… | Owner: ram@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py27-matplotlib -----------------------------+---------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => ram@… * port: => py27-matplotlib Old description:
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
New description: 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 }}} -- Comment: Please remember to fill in the Port field and cc the maintainers. -- Ticket URL: <https://trac.macports.org/ticket/29893#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29893: improve or remove parsing of Tkinter.__version__ required for newer python versions -----------------------------+---------------------------------------------- Reporter: vbkhp@… | Owner: ram@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py27-matplotlib -----------------------------+---------------------------------------------- Changes (by ram@…): * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/29893#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29893: improve or remove parsing of Tkinter.__version__ required for newer python versions ------------------------------+--------------------------------------------- Reporter: vbkhp@… | Owner: ram@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: py27-matplotlib | ------------------------------+--------------------------------------------- Changes (by ram@…): * status: assigned => closed * resolution: => fixed Comment: upstream patch applied in r79644, thanks -- Ticket URL: <https://trac.macports.org/ticket/29893#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts