Relenv build is resposible for building Python and it’s dependencies from source. The build process also ensures Python is re-locatable. The directory containg the python build can be moved around on the filesystem or to another host machine of the same architecture.

relenv build


Build Relenv Python Environments from source

usage: relenv build [-h] [--arch {x86_64,aarch64}] [--clean]
                    [--python {3.10.10,3.11.2}] [--no-cleanup]
                    [--force-download] [--step STEP] [--check-versions]

Named Arguments#


Possible choices: x86_64, aarch64

The host architecture [default: “x86_64”]

Default: “x86_64”


Clean up before running the build. This option will remove the logs, src, build, and previous tarball.

Default: False


Possible choices: 3.10.10, 3.11.2

The python version [default: “3.10.10”]

Default: “3.10.10”


By default the build directory is removed after the build tarball is created. Setting this option will leave the build directory in place.

Default: False


Force downloading source tarballs even if they exist

Default: False


A step to run alone, can use multiple of this argument. When this option is used to invoke builds, depenencies of the steps are ignored. This option should be used with care, as it’s easy to request a situation that has no chance of being succesful.

Default: []


Check for new version of python and it’s depenencies, then exit.

Default: False