details:
http://www.bx.psu.edu/hg/galaxy/rev/e1e119b0bd17
changeset: 1727:e1e119b0bd17
user: Nate Coraor <nate(a)bx.psu.edu>
date: Fri Jan 30 11:37:18 2009 -0500
description:
Add fetch_eggs option to pull for other platforms (e.g. cluster nodes)
2 file(s) affected in this change:
scripts/fetch_eggs.py
scripts/get_platforms.py
diffs (47 lines):
diff -r 9a06f9910524 -r e1e119b0bd17 scripts/fetch_eggs.py
--- a/scripts/fetch_eggs.py Tue Jan 27 17:12:04 2009 -0500
+++ b/scripts/fetch_eggs.py Fri Jan 30 11:37:18 2009 -0500
@@ -1,9 +1,13 @@
"""
-usage: fetch_eggs.py [egg_name]
+usage: fetch_eggs.py [egg_name] [platform]
With no arguments, fetches all eggs necessary according to the
settings in universe_wsgi.ini.
egg_name - Fetch only this egg (as defined in eggs.ini) or 'all' for
all eggs (even those not required by your settings).
+ platform - Fetch eggs for a specific platform (if not provided, fetch
+ eggs for *this* platform). Useful for fetching eggs for cluster
+ nodes which are of a different architecture than the head node.
+ Platform name can be determined with the get_platforms.py script.
"""
import os, sys, logging
@@ -17,6 +21,8 @@
from galaxy.eggs import *
c = Crate()
+if len( sys.argv ) == 3:
+ c.platform = { 'peak' : sys.argv[2].rsplit('-',1)[0],
'galaxy' : sys.argv[2] }
c.parse()
try:
if len( sys.argv ) == 1:
diff -r 9a06f9910524 -r e1e119b0bd17 scripts/get_platforms.py
--- a/scripts/get_platforms.py Tue Jan 27 17:12:04 2009 -0500
+++ b/scripts/get_platforms.py Fri Jan 30 11:37:18 2009 -0500
@@ -1,9 +1,12 @@
#!/usr/bin/env python
-import sys
+import os, sys
assert sys.version_info[:2] >= ( 2, 4 )
-from eggs import get_full_platform, get_noplatform
-print get_noplatform()
-print get_full_platform()
+lib = os.path.abspath( os.path.join( os.path.dirname( __file__ ), "..",
"lib" ) )
+sys.path.append( lib )
+
+from galaxy.eggs import get_platform
+print get_platform()
+print get_platform( True )