asv.plugins.conda¶
Attributes¶
Classes¶
Manage an environment using conda. |
Functions¶
Find the conda executable robustly across conda versions. |
Module Contents¶
- asv.plugins.conda._find_conda()[source]¶
Find the conda executable robustly across conda versions.
Returns¶
- condastr
Path to the conda executable.
Raises¶
- OSError
If the executable cannot be found in either the CONDA_EXE environment variable or in the PATH.
Notes¶
In POSIX platforms in conda >= 4.4, conda can be set up as a bash function rather than an executable. (This is to enable the syntax
conda activate env-name
.) In this case, the environment variableCONDA_EXE
contains the path to the conda executable. In other cases, we use standard search for the appropriate name in the PATH.See https://github.com/airspeed-velocity/asv/issues/645 for more details.
- class asv.plugins.conda.Conda(conf, python, requirements, tagged_env_vars)[source]¶
Manage an environment using conda.
Dependencies are installed using
conda
. The benchmarked project is installed usingpip
.- classmethod matches(python)[source]¶
Returns True if this environment subclass can handle the given Python specifier.