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 into a uv run –python 3.x $COMMAND command like, e.g.
uv run --python 3.11 axivion_config
uv run --python 3.11 axivion_ci
uv run --python 3.11 axivion_analysis
uv run --python 3.11 gravis
Please note that calling uv run –python 3.11 axivion_config does not forcibly run axivion_config with this Python 3.11 interpreter, if there is, e.g. a Python 3.12 already available in PATH or another Python interpreter enforced via BAUHAUS_PYTHON, then those will be preferred. Doing a uv run –python 3.11 … just makes this Python available in this context and if it is the only usable one for the Axivion Suite, it will be used.
Note
BAUHAUS_PYTHON needs to be set to python for this to work, as the tools will otherwise default to the Python interpreter that is part of the Axivion Suite.