mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
Whether running locally or via PBS, $PATH should now be handled in your user's environment. This also fixes problems like PYTHONPATH on the new blast nodes being wrong (because they are x86_64 and the frontends are i686). Note that you can actually start Galaxy without having an eggs dir now.
27 lines
655 B
Python
27 lines
655 B
Python
"""
|
|
usage: check_eggs.py
|
|
"""
|
|
import os, sys, logging
|
|
|
|
root = logging.getLogger()
|
|
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 )
|
|
|
|
from galaxy.eggs import *
|
|
|
|
c = Crate()
|
|
c.parse()
|
|
galaxy_config = GalaxyConfig()
|
|
ignore = []
|
|
for name in c.get_names():
|
|
if not galaxy_config.check_conditional( name ):
|
|
ignore.append( name )
|
|
if not c.find( ignore=ignore ):
|
|
print "Some of your Galaxy eggs are out of date. Please update them"
|
|
print "by running:"
|
|
print " python scripts/fetch_eggs.py"
|
|
sys.exit( 1 )
|