Skip to content

Commit

Permalink
Disable conda_auto_init default = true when not running from source
Browse files Browse the repository at this point in the history
  • Loading branch information
natefoo committed Oct 24, 2024
1 parent 3b2d81d commit 90caa40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/source/admin/galaxy_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@
:Description:
Set to true to instruct Galaxy to install Conda from the web
automatically if it cannot find a local copy and conda_exec is not
configured.
configured. The default is true if running Galaxy from source, and
false if running from installed packages.
:Default: ``true``
:Type: bool

Expand Down
3 changes: 3 additions & 0 deletions lib/galaxy/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,9 @@ def _process_config(self, kwargs: Dict[str, Any]) -> None:
# self, populate config_dict
self.config_dict["conda_mapping_files"] = [self.local_conda_mapping_file, _default_mapping]

if not running_from_source and kwargs.get("conda_auto_init") is None:
self.config_dict["conda_auto_init"] = False

if self.container_resolvers_config_file:
self.container_resolvers_config_file = self._in_config_dir(self.container_resolvers_config_file)

Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/config/sample/galaxy.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ galaxy:

# Set to true to instruct Galaxy to install Conda from the web
# automatically if it cannot find a local copy and conda_exec is not
# configured.
# configured. The default is true if running Galaxy from source, and
# false if running from installed packages.
#conda_auto_init: true

# You must set this to true if conda_prefix and job_working_directory
Expand Down
3 changes: 2 additions & 1 deletion lib/galaxy/config/schemas/config_schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ mapping:
required: false
desc: |
Set to true to instruct Galaxy to install Conda from the web automatically
if it cannot find a local copy and conda_exec is not configured.
if it cannot find a local copy and conda_exec is not configured. The default is
true if running Galaxy from source, and false if running from installed packages.
conda_copy_dependencies:
type: bool
Expand Down

0 comments on commit 90caa40

Please sign in to comment.