Skip to content

Commit 0ff60a3

Browse files
committed
Use conda bin when UPDATE_CONDA_STARTUP
We don't have `mamba` at this point, so we need to force using `conda`. When the have `micromamba` installed in the Docker image, we will need to update `mamba` here instead.
1 parent c0ad809 commit 0ff60a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/doc_builder/python_environments.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,10 @@ def _update_conda_startup(self):
518518
independently the version of Miniconda that it has installed.
519519
"""
520520
self.build_env.run(
521-
self.conda_bin_name(),
521+
# TODO: use ``self.conda_bin_name()`` once ``mama`` is installed in
522+
# the Docker image
523+
'conda',
524+
522525
'update',
523526
'--yes',
524527
'--quiet',
@@ -563,6 +566,7 @@ def setup_base(self):
563566
self._append_core_requirements()
564567
self._show_environment_yaml()
565568

569+
# TODO: remove it when ``mamba`` is installed in the Docker image
566570
if self.project.has_feature(Feature.CONDA_USES_MAMBA):
567571
self._install_mamba()
568572

0 commit comments

Comments
 (0)