mirror of https://github.com/mamba-org/mamba.git
Fix doc (#3568)
This commit is contained in:
parent
0075a24e4c
commit
b94b30e941
|
@ -41,8 +41,10 @@ The first way to add a repository is from a list of |PackageInfo| using
|
|||
|
||||
import libmambapy
|
||||
|
||||
channel_alias = libmambapy.specs.CondaURL.parse("https://conda.anaconda.org")
|
||||
|
||||
db = libmambapy.solver.libsolv.Database(
|
||||
libmambapy.specs.ChannelResolveParams(channel_alias="https://conda.anaconda.org")
|
||||
libmambapy.specs.ChannelResolveParams(channel_alias=channel_alias)
|
||||
)
|
||||
|
||||
repo1 = db.add_repo_from_packages(
|
||||
|
|
|
@ -151,11 +151,12 @@ All parameters that influence this resolution must be provided explicitly.
|
|||
.. code:: python
|
||||
|
||||
import libmambapy.specs as specs
|
||||
import libmambapy.specs.CondaURL as CondaURL
|
||||
|
||||
uc = specs.UnresolvedChannel.parse("conda-forge[prius-avx42]")
|
||||
chan, *_ = specs.Channel.resolve(
|
||||
uc,
|
||||
channel_alias="https://repo.mamba.pm"
|
||||
channel_alias=CondaURL.parse("https://repo.mamba.pm")
|
||||
# ...
|
||||
)
|
||||
|
||||
|
@ -168,11 +169,12 @@ There are no hard-coded names:
|
|||
.. code:: python
|
||||
|
||||
import libmambapy.specs as specs
|
||||
import libmambapy.specs.CondaURL as CondaURL
|
||||
|
||||
uc = specs.UnresolvedChannel.parse("defaults")
|
||||
chan, *_ = specs.Channel.resolve(
|
||||
uc,
|
||||
channel_alias="https://repo.mamba.pm"
|
||||
channel_alias=CondaURL.parse("https://repo.mamba.pm")
|
||||
# ...
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue