Skip to content

Commit 9b968ab

Browse files
authored
Docs: update Conda to its latest available version (#10493)
Example using `build.jobs.pre_create_environment` to update Conda. We will link this example in the email we will be sending to users when deprecating/removing `UPDATE_CONDA_STARTUP` feature flag. See #9779
1 parent d863711 commit 9b968ab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/user/build-customization.rst

+26
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,32 @@ Take a look at the following example:
339339
configuration: docs/conf.py
340340
341341
342+
Update Conda version
343+
^^^^^^^^^^^^^^^^^^^^
344+
345+
Projects using Conda may need to install the latest available version of Conda.
346+
This can be done by using the ``pre_create_environment`` user-defined job to update Conda
347+
before creating the environment.
348+
Take a look at the following example:
349+
350+
351+
.. code-block:: yaml
352+
:caption: .readthedocs.yaml
353+
354+
version: 2
355+
356+
build:
357+
os: "ubuntu-22.04"
358+
tools:
359+
python: "miniconda3-4.7"
360+
jobs:
361+
pre_create_environment:
362+
- conda update --yes --quiet --name=base --channel=defaults conda
363+
364+
conda:
365+
environment: environment.yml
366+
367+
342368
.. _build_commands_introduction:
343369

344370
Override the build process

0 commit comments

Comments
 (0)