details:
http://www.bx.psu.edu/hg/galaxy/rev/828d9f9dcb29
changeset: 3192:828d9f9dcb29
user: Kanwei Li <kanwei(a)gmail.com>
date: Tue Dec 22 15:34:50 2009 -0500
description:
Code for debugging egg error
diffstat:
lib/galaxy/eggs/__init__.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r e8e73460f0d4 -r 828d9f9dcb29 lib/galaxy/eggs/__init__.py
--- a/lib/galaxy/eggs/__init__.py Mon Dec 21 18:03:50 2009 -0500
+++ b/lib/galaxy/eggs/__init__.py Tue Dec 22 15:34:50 2009 -0500
@@ -520,7 +520,10 @@
location = None
del working_set.by_key[dist.key]
working_set.entry_keys[entry] = []
- sys.path.remove(entry)
+ try:
+ sys.path.remove(entry)
+ except ValueError:
+ raise Exception( "Cannot remove entry: %s" % str(entry) )
r = require( pkg )
if location is not None and not location.endswith( '.egg' ):
working_set.entries.append( location ) # re-add to the set if it's a
dir.