[Patches] [ python-Patches-645383 ] Give some clue why modules fail...

noreply@sourceforge.net noreply@sourceforge.net
Sat, 30 Nov 2002 13:21:41 -0800


Patches item #645383, was opened at 2002-11-28 18:52
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=645383&group_id=5470

Category: Build
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Ben Laurie (benl)
Assigned to: Nobody/Anonymous (nobody)
Summary: Give some clue why modules fail...

Initial Comment:
--- Python-2.2.2/setup.py       Thu Oct 10 00:59:16 2002
+++ Python-2.2.2-ben/setup.py   Thu Nov 28 17:45:51 2002
@@ -163,9 +163,9 @@
             return
         try:
             __import__(ext.name)
-        except ImportError:
-            self.announce('WARNING: removing "%s"
since importing it failed' %
-                          ext.name)
+        except ImportError, e:
+            self.announce('WARNING: removing "%s"
since importing it failed: %s' %
+                          (ext.name,str(e)))
             assert not self.inplace
             fullname = self.get_ext_fullname(ext.name)
             ext_filename = os.path.join(self.build_lib,


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

>Comment By: Ben Laurie (benl)
Date: 2002-11-30 21:21

Message:
Logged In: YES 
user_id=14333

1) Sorry, attaching a file for a small patch wasn't the
obvious thing to do...

2) The issue isn't the disposal of the module after its
failed, its that you get no clue as to why its failed...


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

Comment By: Michael Hudson (mwh)
Date: 2002-11-29 11:45

Message:
Logged In: YES 
user_id=6656

1) please don't paste patches into the textarea!
2) would you be happier if we adopted the 2.3 solution of
just renaming the failed module rather than deleting it? 
I've been thinking for a while that that would be worthwhile.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=645383&group_id=5470