This tool manages Lmod modulefiles for various AdaCore software. The created modulefiles enable easy switching between different software versions. Lmod achieves that by dynamically changing the PATH
environment variable.
$ pip3 install git+https://github.com/AdaCore/lmod_manager.git
A new software version can be installed using the install
subcommand.
$ lmod_manager install spark-pro-22.1-x86_64-linux-bin.tar.gz
A corresponding modulefile will be automatically created.
$ module avail
------------------------------------------------- /etc/lmod/modules --------------------------------------------------
gnat/2020 gnatpro/22.0 sparkpro/20.2
gnat/2021 gnatpro/22.1 sparkpro/21.1
gnatpro/20.0 gnatpro-arm-elf/22.0 sparkpro/22.0
gnatpro/20.1 gnatpro-riscv32-elf/22.0 sparkpro/22.1
To use or switch to a particular version, the corresponding module must be loaded.
$ module load sparkpro/22.1
See the User Guide for Lmod for an introduction to Lmod.
So far, only GNAT Pro, SPARK Pro and CodePeer are supported.