\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
environment¶
View page sourceCreate and Activate cmpad Environment¶
Syntax¶
build_type=build_typesource bin/environment.shbuild_type¶
This must be either debug or release .
Create Environment¶
If the file build/build_type/bin/activate does not exist,
a python virtual environment is create in the directory
build/build_type .
In addition, the python packages xrst, toml, pytest, and numpy
are installed in this environment.
In this case, environment.sh will output text saying that it is creating
build/build_type/bin/activate .
Activate Environment¶
If the shell variable value $VIRTUAL_ENV does not end with
build/build_type, build/build_type/bin/activate
is used to activate the environment.
In this case, environment.sh will output text saying that it is sourcing
build/build_type/bin/activate .
PYTHONPATH¶
This shell variable will be set to the location of the site-packages in the virtual environment.