ASV environment variables¶
Benchmarking and build commands are run with the following environment variables available:
ASV:trueASV_PROJECT: the project name from the configuration fileASV_ENV_NAME: name of the currently active environmentASV_ENV_TYPE: type of the currently active environmentASV_ENV_DIR: full path to the currently active environment rootASV_CONF_DIR: full path to the directory whereasv.conf.jsonisASV_BUILD_DIR: full path to the build directory (checked-out source path +repo_subdir)ASV_BUILD_CACHE_DIR: full path to the build cache directoryASV_COMMIT: commit hash of currently installed project
If there is no asv-managed environment, build, or cache directory, or commit hash, those environment variables are unset.
The following environment variables controlling Python and other behavior are also set:
PATH: environment-specific binary directories prependedPIP_USER:falsePYTHONNOUSERSITE:True(for conda environments only)PYTHONPATH: unset (if really needed, can be overridden by settingASV_PYTHONPATH)
Custom environment variables¶
You can send custom environment variables to build and benchmarking commands
by configuring the matrix setting in asv.conf.json.