From de1cd0195439cfaf386635d89130df4b2dadd194 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Thu, 12 Feb 2015 08:28:37 -0500 Subject: [PATCH] Fix path manipulation during fetch_eggs. This getting an external version of pkg_resources (and not ours in lib/) is what is causing the weird egg fetching errors. Newer versions of pkg_resources create a mangled distribution string for some eggs with nonstandard version identifiers. --- scripts/fetch_eggs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fetch_eggs.py b/scripts/fetch_eggs.py index f96596f6ee7..20f9c8dfcd2 100755 --- a/scripts/fetch_eggs.py +++ b/scripts/fetch_eggs.py @@ -32,7 +32,7 @@ root.setLevel( 10 ) root.addHandler( logging.StreamHandler( sys.stdout ) ) lib = os.path.abspath( os.path.join( os.path.dirname( __file__ ), "..", "lib" ) ) -sys.path.append( lib ) +sys.path.insert(1, lib) from galaxy.eggs import Crate, EggNotFetchable import pkg_resources