Skip to content

Commit

Permalink
Merge pull request #235 from kaczmarj/enh/conda-base
Browse files Browse the repository at this point in the history
ENH: allow use of base miniconda environment
  • Loading branch information
Jakub Kaczmarzyk authored Nov 1, 2018
2 parents 7f48b3e + 000246a commit 83dbc15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neurodocker/interfaces/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Miniconda(_BaseInterface):
_pretty_name = 'Miniconda'

_installed = False
_environments = set()
_environments = {'base'}
_env_set = False

def __init__(self, *args, create_env=None, use_env=None,
Expand Down Expand Up @@ -223,7 +223,7 @@ def __init__(self, *args, create_env=None, use_env=None,
"cannot conda or pip install when creating environment from"
" yaml file")

if self.use_env is not None and not Miniconda._installed:
if self.use_env is not None and self.use_env != "base" and not Miniconda._installed:
self._environments.add(self.use_env)
Miniconda._installed = True
Miniconda._env_set = True
Expand Down

0 comments on commit 83dbc15

Please sign in to comment.