This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: tkinter build variants on OSX
Type: enhancement Stage: needs patch
Components: macOS Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: hobbs, ronaldoussoren, srid, trentm
Priority: low Keywords:

Created on 2010-05-24 09:06 by ronaldoussoren, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg106347 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-05-24 09:06
It would be nice if the binary installer supported both Tk 8.4 and Tk 8.5: the former is present on all current versions of OSX as part of the system, the latter is the only one that is supported in 64-bit code on OSX  10.6.

A number of Tkinter users have also mentioned that they would much prefer to target Tk 8.5 due to a large number of bugfixes in that version (on OSX).

What I'm thinking of is:

have _tkinter.py that does:

try:
   from _tkinter85 import *
except ImportError:
   from _tkinter84 import *

Then patch setup.py to build _tkinter84.so and _tkinter85.so from _tkinter.c while linking to the right version of Tk. This should only be done when a special configure argument is present, if it isn't setup.py should default to building _tkinter.so like it currently does. 

I don't have time to work on a patch myself.

Workaround for this request: build your own copy of _tkinter when you want to use Tk 8.5 (or later) and use sys.path manipulation to ensure that that copy is used.
msg111444 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-24 10:19
We talked about this at the language summit at EuroPython 2010. We'll resolve the installer issue by moving the 64-bit capable installer to Tk 8.5 (with a minimal OSX version of 10.6). 

The 32-bit installer will still use Tk 8.4 because it needs to run on OSX 10.3.9 and later, and that's they only version of Tk that is available everywhere as part of a system install.

I'm closing this issue because the proposed mechanism would only be truly useful as part of the OSX installer and that won't happen.
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53044
2010-07-24 10:19:46ronaldoussorensetstatus: open -> closed
resolution: wont fix
messages: + msg111444
2010-06-23 16:49:24sridsetnosy: + hobbs, trentm, srid
2010-05-24 09:07:00ronaldoussorensetassignee: ronaldoussoren ->
2010-05-24 09:06:45ronaldoussorencreate