@@ -447,10 +447,6 @@ def conda_bin_name(self):
447
447
"""
448
448
Decide whether use ``mamba`` or ``conda`` to create the environment.
449
449
450
- Return ``mamba`` if the project has ``CONDA_USES_MAMBA`` feature and
451
- ``conda`` otherwise. This will be the executable name to be used when
452
- creating the conda environment.
453
-
454
450
``mamba`` is really fast to solve dependencies and download channel
455
451
metadata on startup.
456
452
@@ -459,10 +455,6 @@ def conda_bin_name(self):
459
455
# Config file using ``build.tools.python``
460
456
if self .config .using_build_tools :
461
457
return self .config .python_interpreter
462
-
463
- # Config file using ``conda``
464
- if self .project .has_feature (Feature .CONDA_USES_MAMBA ):
465
- return 'mamba'
466
458
return 'conda'
467
459
468
460
def _update_conda_startup (self ):
@@ -473,8 +465,6 @@ def _update_conda_startup(self):
473
465
independently the version of Miniconda that it has installed.
474
466
"""
475
467
self .build_env .run (
476
- # TODO: use ``self.conda_bin_name()`` once ``mamba`` is installed in
477
- # the Docker image
478
468
'conda' ,
479
469
'update' ,
480
470
'--yes' ,
@@ -485,19 +475,6 @@ def _update_conda_startup(self):
485
475
cwd = self .checkout_path ,
486
476
)
487
477
488
- def _install_mamba (self ):
489
- self .build_env .run (
490
- 'conda' ,
491
- 'install' ,
492
- '--yes' ,
493
- '--quiet' ,
494
- '--name=base' ,
495
- '--channel=conda-forge' ,
496
- 'python=3.7' ,
497
- 'mamba' ,
498
- cwd = self .checkout_path ,
499
- )
500
-
501
478
def setup_base (self ):
502
479
conda_env_path = os .path .join (self .project .doc_path , 'conda' )
503
480
os .path .join (conda_env_path , self .version .slug )
@@ -509,15 +486,6 @@ def setup_base(self):
509
486
self ._append_core_requirements ()
510
487
self ._show_environment_yaml ()
511
488
512
- if all ([
513
- # The project has CONDA_USES_MAMBA feature enabled and,
514
- self .project .has_feature (Feature .CONDA_USES_MAMBA ),
515
- # the project is not using ``build.tools``,
516
- # which has mamba installed via asdf.
517
- not self .config .using_build_tools ,
518
- ]):
519
- self ._install_mamba ()
520
-
521
489
self .build_env .run (
522
490
self .conda_bin_name (),
523
491
'env' ,
@@ -606,9 +574,6 @@ def _get_core_requirements(self):
606
574
'pillow' ,
607
575
]
608
576
609
- if self .project .has_feature (Feature .CONDA_USES_MAMBA ):
610
- conda_requirements .append ('pip' )
611
-
612
577
# Install pip-only things.
613
578
pip_requirements = [
614
579
'recommonmark' ,
0 commit comments