commit/galaxy-central: natefoo: Use Egg.fetch() instead of Egg.resolve() to get dependencies when dist-scrambling.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/ca3fe3a5f94c/ changeset: r5405:ca3fe3a5f94c user: natefoo date: 2011-04-18 20:04:06 summary: Use Egg.fetch() instead of Egg.resolve() to get dependencies when dist-scrambling. affected #: 1 file (121 bytes) --- a/scripts/dist-scramble.py Fri Apr 15 16:37:56 2011 -0400 +++ b/scripts/dist-scramble.py Mon Apr 18 14:04:06 2011 -0400 @@ -34,10 +34,11 @@ for egg in eggs: try: for dependency in egg.dependencies: - print "Checking %s dependency: %s" % ( egg.name, dependency ) + print "Checking %s on %s dependency: %s" % ( egg.name, egg.platform, dependency ) # this could be in a better data structure... dep = filter( lambda x: x.platform == egg.platform, c[dependency] )[0] - dep.resolve() + if not os.path.exists( dep.distribution.location ): + dep.fetch( dep.distribution.as_requirement() ) except EggNotFetchable, e: degg = e.eggs[0] print "%s build dependency %s %s %s couldn't be" % ( egg.name, degg.name, degg.version, degg.platform ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket