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: Removing _tkinter considered harmful
Type: Stage:
Components: Build Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, dubois, mwh
Priority: normal Keywords:

Created on 2002-03-25 16:48 by dubois, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg9962 - (view) Author: Paul F. Dubois (dubois) (Python triager) Date: 2002-03-25 16:48
The Python build process now tries to import _tkinter
and if it cannot removes it. There are two problems
with this:

a. It isn't correct.
b. It removes the very thing required to understand why
it  won't import.

(a) It isn't correct because it might import correctly
later. If the user has, for example, installed tk / tcl
in a place that is not in LD_LIBRARY_PATH, the import
might fail during the Python build but succeed after
the user sets this variable. Since the installer having
it set is no guarantee the user will have it set, we
aren't buying anything by verifying that the installer
can import it.

(b) If it won't import you just destroyed the evidence.
msg9963 - (view) Author: Paul F. Dubois (dubois) (Python triager) Date: 2002-04-26 14:38
Logged In: YES 
user_id=5550

I now know that this is in Python's setup.py file. I suggest
the offending file might be renamed rather than removed.
msg9964 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-04-26 14:52
Logged In: YES 
user_id=6656

The time machine strikes again; that's what happens in CVS
Python (on the trunk; this didn't get ported to 221).
msg9965 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2002-12-03 18:51
Logged In: YES 
user_id=11375

It didn't get ported to 2.2.2, either, or to the release22-maint branch.
Should it be backported?

(If not, this bug can be closed as "fixed in 2.3".)
msg9966 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-12-03 18:53
Logged In: YES 
user_id=6656

Yes please!  If you can look at #645383 at the same time,
the more the merrier!
msg9967 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-12-06 15:33
Logged In: YES 
user_id=6656

This should be fixed in revision 1.73.4.12 of setup.py.
History
Date User Action Args
2022-04-10 16:05:09adminsetgithub: 36327
2002-03-25 16:48:44duboiscreate