diff --git a/config/galaxy.ini.sample b/config/galaxy.ini.sample index 62fbe1d1a7b..814ef564443 100644 --- a/config/galaxy.ini.sample +++ b/config/galaxy.ini.sample @@ -125,34 +125,6 @@ paste.app_factory = galaxy.web.buildapp:app_factory # but prefixed with install_ are also available). #install_database_connection = sqlite:///./database/universe.sqlite?isolation_level=IMMEDIATE -# -- Galaxy framework dependencies (eggs) - -# Options in this section can also be provided as environment variables in the -# form `GALAXY_CONFIG_`, e.g. `GALAXY_CONFIG_ENABLE_EGGS=False`, -# etc. Environment variables override the settings in this config. - -# For more details, see the `requirements.txt` file at the root of the Galaxy -# source distribution. - -# Galaxy manages all of its dependent Python modules by downloading Python eggs -# from the Galaxy eggs distribution server at https://eggs.galaxyproject.org. -# You may choose to disable this and attempt to install dependencies by hand -# (e.g. with pip), but beware that this may cause problems due to version -# incompatibilities between Galaxy and its dependencies. Do not do this unless -# you know what you're doing. -#enable_eggs = True - -# You may choose to keep eggs enabled but disable fetching them automatically. -# (hint: To do a one-time fetch, you can disable here and then use -# `GALAXY_CONFIG_ENABLE_EGG_FETCH=True python ./scripts/fetch_eggs.py` from the -# root of the Galaxy source. -#enable_egg_fetch = True - -# If you'd like to prefer any dependencies found in your local environment -# before (fetching and) using Galaxy's egg of that dependency, you can enable -# the following option: -#try_dependencies_from_env = False - # -- Files and directories # Dataset files are stored in this directory. diff --git a/lib/galaxy/eggs/__init__.py b/lib/galaxy/eggs/__init__.py index d4e40c8551a..ad57bd347b1 100644 --- a/lib/galaxy/eggs/__init__.py +++ b/lib/galaxy/eggs/__init__.py @@ -403,8 +403,8 @@ class GalaxyConfig( object ): always_conditional = ( 'pysam', 'ctypes', 'python_daemon' ) def __init__( self, config_file ): - self.enable_egg_fetch = False - self.enable_eggs = False + self.enable_egg_fetch = True + self.enable_eggs = True self.try_dependencies_from_env = False if config_file is None: self.config = None @@ -412,13 +412,6 @@ class GalaxyConfig( object ): self.config = ConfigParser.ConfigParser() if self.config.read( config_file ) == []: raise Exception( "error: unable to read Galaxy config from %s" % config_file ) - self.enable_egg_fetch = True - self.enable_eggs = True - for opt in ('enable_egg_fetch', 'enable_eggs', 'try_dependencies_from_env'): - try: - setattr(self, opt, string_as_bool(self.config.get('app:main', opt))) - except: - pass # use default for opt in ('enable_egg_fetch', 'enable_eggs', 'try_dependencies_from_env'): var = 'GALAXY_CONFIG_' + opt.upper() if var in os.environ: diff --git a/requirements.txt b/requirements.txt index 83712a4d586..8a7a114e8cc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,8 +12,7 @@ # However, you may want to manage these dependencies on your own. If so, this # file can be used with pip to install all of the bare minimum dependencies for # starting a Galaxy server. Use this in conjunction with the -# `enable_eggs = False` galaxy.ini option or `GALAXY_CONFIG_ENABLE_EGGS=False` -# environment variable +# `GALAXY_CONFIG_ENABLE_EGGS=False` environment variable. # # Note that except in the case of SQLAlchemy, all dependencies will be # installed at their newest versions. Galaxy has not been tested with these and @@ -62,4 +61,3 @@ bioblend Parsley WebError http://svgfig.googlecode.com/files/svgfig-1.1.6.tgz - diff --git a/scripts/paster.py b/scripts/paster.py index 56f245d3a8e..a8373c98ab6 100755 --- a/scripts/paster.py +++ b/scripts/paster.py @@ -30,36 +30,6 @@ if 'LOG_TEMPFILES' in os.environ: _log_tempfile = TempFile() import tempfile -try: - serve = sys.argv.index('serve') -except: - print >>sys.stderr, "Galaxy does not use the real Paste Script, the only supported command is 'serve'" - sys.exit(1) - -# eggs.require() can be called inside the app without access to the Galaxy -# config, so we need to push the egg options into the environment so they are -# available to Crate instantiated in require() - -# locate the arg containing the path to the config file -config = None -p = configparser.ConfigParser() -for arg in sys.argv: - try: - p.read(arg) - assert 'app:main' in p.sections() - config = arg - break - except (configparser.Error, AssertionError): - pass - -# find any egg options set in the config -crate = eggs.Crate(config) -for opt in ('enable_eggs', 'enable_egg_fetch', 'try_dependencies_from_env'): - env = 'GALAXY_CONFIG_' + opt.upper() - # don't overwrite existing env vars configured by the user - if env not in os.environ: - os.environ[env] = str(getattr(crate.galaxy_config, opt)) - eggs.require( "Paste" ) eggs.require( "PasteDeploy" )