environment

View page source

Create and Activate cmpad Environment

Syntax

      build_type=build_type
      source bin/environment.sh

build_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.