Skip to content

Commit 9ce638e

Browse files
authored
Merge pull request #1905 from mfisher87/document-prerelease-install-with-yaml
Add documentation on installing pre-release with YAML config
2 parents 5d2b474 + 9ee4236 commit 9ce638e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/maintainer/knowledge_base.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,9 @@ in ``recipe/conda_build_config.yaml`` in their respective feedstocks.
15791579
Installing a pre-release build
15801580
------------------------------
15811581
1582+
Using the `conda` CLI
1583+
^^^^^^^^^^^^^^^^^^^^^
1584+
15821585
Use the following command, but replace ``PACKAGE_NAME`` with the package you want
15831586
to install and replace ``LABEL`` with ``rc`` or ``dev``:
15841587
@@ -1592,6 +1595,27 @@ For example, let's install matplotlib from the ``rc`` label:
15921595
15931596
conda install -c conda-forge/label/matplotlib_rc -c conda-forge matplotlib
15941597
1598+
Using `environment.yml`
1599+
^^^^^^^^^^^^^^^^^^^^^^^
1600+
1601+
Use `MatchSpec
1602+
<https://github.com/conda/conda/blob/c3fb8150ed4c3dabb7ca376ade208095f98ee0b9/conda/models/match_spec.py#L70-L150>`__
1603+
to specify your package:
1604+
1605+
.. code-block:: yaml
1606+
1607+
dependencies:
1608+
- conda-forge/label/matplotlib_rc::matplotlib=3.7.0rc1
1609+
1610+
Alternately, you can use the channels section to enable the `matplotlib_rc` channel:
1611+
1612+
.. code-block:: yaml
1613+
1614+
channels:
1615+
- conda-forge/label/matplotlib_rc
1616+
dependencies:
1617+
- matplotlib=3.7.0.rc1
1618+
15951619
Pre-release version sorting
15961620
---------------------------
15971621

0 commit comments

Comments
 (0)