mirror of
https://github.com/AdaCore/lmod_manager.git
synced 2026-02-12 13:10:59 -08:00
main
Co-authored-by: Tobias Reiher <15232394+treiher@users.noreply.github.com>
Lmod Manager
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.
Installation
$ pip3 install git+https://github.com/AdaCore/lmod_manager.git
Usage
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.
Requirements
Limitations
The following software is supported:
- GNAT Pro
- GNAT Pro for Rust
- GNAT Studio
- SPARK Pro
- CodePeer
Description
Languages
Python
64.8%
Shell
30.4%
Makefile
4.8%