8.6.1. Using uv managed Python

Note

It is recommended to use the Python packages supplied by your GNU/Linux distribution, if possible, and it is also recommended to use the Windows installer packages of Python, if possible. The Windows installer supports a per-user installation and does not require elevated privileges.

If, however, there is no usable Python installation available on your system, there is now an easier alternative to Compiling Python on GNU/Linux and Using Embeddable Python on Windows:

You can download the latest version of the package manager uv from https://github.com/astral-sh/uv/releases/. It is available for the majority of platforms and consists of just a single statically linked binary.

Then, whenever you need to call tools from the Axivion Suite, you can just wrap them in a uv run –python 3.x $COMMAND command, for example:

uv run --python 3.14 axivion_config
uv run --python 3.14 axivion_ci
uv run --python 3.14 axivion_analysis
uv run --python 3.14 gravis

By default, the tools of the Axivion Suite use the Python interpreter that is part of the Axivion Suite, so BAUHAUS_PYTHON has to be set for the Python provided by uv to be used. uv run puts the directory of the requested interpreter first in PATH.

  • With BAUHAUS_PYTHON=python, the first python in PATH is used, which is the interpreter provided by uv.

  • With BAUHAUS_PYTHON=auto, the tools search for a supported Python. On GNU/Linux, they search PATH for python3.15, python3.14, python3.13, python3.12, python3 and python, in this order, so a newer Python elsewhere in PATH is preferred over the one provided by uv. On Windows, a Python registered in the Windows registry is preferred over PATH.