[Python-bugs-list] [ python-Bugs-534748 ] Removing _tkinter considered harmful

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Apr 2002 07:52:35 -0700


Bugs item #534748, was opened at 2002-03-25 16:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=534748&group_id=5470

Category: Build
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul F. Dubois (dubois)
Assigned to: Nobody/Anonymous (nobody)
Summary: Removing _tkinter considered harmful

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2002-04-26 14:52

Message:
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).

----------------------------------------------------------------------

Comment By: Paul F. Dubois (dubois)
Date: 2002-04-26 14:38

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=534748&group_id=5470