asv.plugins.conda

Attributes

WIN

Classes

Conda

Manage an environment using conda.

Functions

_conda_lock()

_dummy_lock()

_find_conda()

Find the conda executable robustly across conda versions.

Module Contents

asv.plugins.conda.WIN[source]
asv.plugins.conda._conda_lock()[source]
asv.plugins.conda._dummy_lock()[source]
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 variable CONDA_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 using pip.

tool_name = 'conda'[source]
_matches_cache[source]
_python[source]
_requirements[source]
_conda_channels[source]
_conda_environment_file[source]
classmethod matches(python)[source]

Returns True if this environment subclass can handle the given Python specifier.

classmethod _matches(python)[source]
_setup()[source]

Implementation for setting up the environment.

_get_requirements()[source]
_run_conda(args, env=None)[source]

Run conda command outside the environment.

run(args, **kwargs)[source]

Start up the environment’s python executable with the given args.

run_executable(executable, args, **kwargs)[source]

Run a given executable (eg. python, pip) in the environment.

_run_pip(args, **kwargs)[source]