Skip to content

Environment variables that change how SmartPy is run

Here is a list of some useful ways to change how SmartPy is run.

They can be set when calling python on a SmartPy test scenario, as in:

bash
$ SMARTPY_DEBUG=1 python welcome.py

SMARTPY_OUTPUT_DIR

If not None then set to output compilation files to a different directory.

SMARTPY_OASIS

If not None then set to point to the filepath of a different oasis binary.

SMARTPY_CANOPY

If not None then set to point to the filepath of a different canopy binary.

SMARTPY_DEBUG

If not None then adds extra information to the logging and exception reporting.

SMARTPY_USE_DOCKER

If not None then forces to use docker container - useful for testing.

NOTE docker is used automatically if on Darwin MacOS.

SMARTPY_PYTHON_PARSER

Set SMARTPY_PYTHON_PARSER=1 to use the Python parser rather than the parser in canopy.

SMARTPY_DEPENDENCIES_FILE

See Flags.

SMARTPY_FLAGS

See Flags.