ensureconda1.6.0
Published
Lightweight bootstrapper for a conda executable
pip install ensureconda
Package Downloads
Authors
Project URLs
Requires Python
>=3.8
Dependencies
- appdirs
- click
>=5.1 - conda-package-streaming
- filelock
- packaging
- requests
>=2 - black
; extra == "dev" - build
; extra == "dev" - coverage
; extra == "dev" - docker
; extra == "dev" - flake8
; extra == "dev" - isort
; extra == "dev" - mypy
; extra == "dev" - pip
; extra == "dev" - pre-commit
; extra == "dev" - pytest
; extra == "dev" - types-click
; extra == "dev" - types-filelock
; extra == "dev" - types-requests
; extra == "dev"
ensureconda
Installation
Python-based
ensureconda is distributed on PyPI as a universal wheel and is available on Linux, macOS and Windows and supports Python 3.8+ and PyPy.
$ pip install ensureconda
Go based
Additionally ensureconda is also available as a statically linked fully stand-alone golang binary. This is a full reimplementation with the same cli as the python version
These can be downloaded from releases
Alternatively if you have go installed you can install from githubg using
$ go install github.com/conda-incubator/ensureconda@latest
$ ensureconda --help
Usage
Ensureconda is a cli tool that will
- Find a preexisting conda/mamba executable
- Install one if nothing was found and installation is allowed.
- Return the path of the executable found/installed on stdout
ensureconda --help
Usage: ensureconda [OPTIONS]
Ensures that a conda/mamba is installed.
Options:
--mamba / --no-mamba search for mamba
--micromamba / --no-micromamba search for micromamba, install if not
present
--conda / --no-conda search for conda
--conda-exe / --no-conda-exe search for conda.exe / conda-standalone,
install if not present
--no-install don't install conda/mamba if no version can
be discovered
--min-conda-version VERSIONNUMBER
minimum version of conda to accept (defaults
to 4.8.2)
--min-mamba-version VERSIONNUMBER
minimum version of mamba/micromamba to
accept (defaults to 0.7.3)
--help Show this message and exit.
Configuring conda-standalone channel
When ensureconda downloads the conda-standalone executable, you can select the
channel via the environment variable ENSURECONDA_CONDA_STANDALONE_CHANNEL.
It defaults to conda-forge, and you can set it to anaconda if you prefer:
export ENSURECONDA_CONDA_STANDALONE_CHANNEL=anaconda
ensureconda --conda-exe
The corresponding package page used is:
https://anaconda.org/$ENSURECONDA_CONDA_STANDALONE_CHANNEL/conda-standalone
License
ensureconda is distributed under the terms of the MIT License.