Skip to content

Commit

Permalink
Docs: update Conda to its latest available version (#10493)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
humitos authored Jun 29, 2023
1 parent d863711 commit 9b968ab
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/user/build-customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,32 @@ Take a look at the following example:
configuration: docs/conf.py
Update Conda version
^^^^^^^^^^^^^^^^^^^^

Projects using Conda may need to install the latest available version of Conda.
This can be done by using the ``pre_create_environment`` user-defined job to update Conda
before creating the environment.
Take a look at the following example:


.. code-block:: yaml
:caption: .readthedocs.yaml
version: 2
build:
os: "ubuntu-22.04"
tools:
python: "miniconda3-4.7"
jobs:
pre_create_environment:
- conda update --yes --quiet --name=base --channel=defaults conda
conda:
environment: environment.yml
.. _build_commands_introduction:

Override the build process
Expand Down

0 comments on commit 9b968ab

Please sign in to comment.