Skip to content
stackhandsPublic

About

Install software with EasyBuild on top of EESSI 2026.06 into a directory you own

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

eb-local

eb-local

Build your own code and install software on top of EESSI (the European Environment for Scientific Software Installations) 2026.06, without knowing EasyBuild's RPATH wrappers, buildenv or LD_LIBRARY_PATH.

Documentation: https://stackhands.github.io/eb-local/

When EESSI-extend alone is enough

eb-local loads EESSI's own EESSI-extend module unchanged and runs eb; the install goes where EESSI-extend puts it, with EESSI's hooks. If you build on one node type, interactively, and need nothing below, module load EESSI-extend and eb is the same install (Building on top of EESSI). eb-local adds what that leaves to each user:

  • eb-local dev puts EasyBuild's RPATH compiler wrappers in front of your own gcc or mpicc, so a program you compile runs later with no modules loaded;
  • a build works on a local disk, the node-local disk of a Slurm job or a workstation's own, and refuses shared scratch, tmpfs and RAM disks as a work directory, before it creates anything;
  • eb-local list shows which CPU targets each module you installed was built for, since EESSI-extend keeps one tree per target;
  • eb-local uninstall removes an install and its module file for every target, which EasyBuild leaves read-only and neither EasyBuild nor Lmod removes.

Compile your own code

eval "$(eb-local dev FFTW/3.3.10-GCC-15.2.0)"
gcc -O2 -fopenmp prog.c -lfftw3 -o prog
./prog                      # runs in a new shell or a job, with no modules loaded

Compile your code against EESSI has the steps for each node type, other compilers and the checks; Run paths, and one build per CPU target says why the program needs no LD_LIBRARY_PATH.

Install software with EasyBuild

eb-local pigz-2.8-GCCcore-15.2.0.eb --robot   # on a workstation, or inside a Slurm job

On a cluster, run it inside an allocation on the node type that will run the software, such as salloc -p <partition> -n 16 -t 02:00:00 on nodes with a node-local disk. On a workstation, a laptop or a CI runner with the EESSI mount, it needs no site file and no Slurm: with no sbatch on PATH and no SLURM_* variable set, the build works under $TMPDIR when that is a local disk, else under $XDG_CACHE_HOME or ~/.cache. --workstation asks for the same where Slurm is installed.

Install software on top of EESSI with EasyBuild has the steps, a build for a group, and what each failure means; Load EESSI and the software you installed loads the modules in a new shell or job.

EESSI-extend, without a Slurm job

eb-local eb -- pigz-2.8-GCCcore-15.2.0.eb --robot   # configured prefix, no Slurm job

eb-local eb sources the EESSI init, loads EESSI-extend, and runs eb without a Slurm job: inside eessi_container.sh, on a laptop with the CernVM File System (CVMFS) mount, or anywhere else the EESSI init can be sourced. It uses the configured prefix or project unless an install variable is already exported. Run EasyBuild through EESSI-extend without a site file has the steps, and Where EESSI-extend installs says where each install variable sends an install and what eb-local checks. eb-local --explain RECIPE prints the script a build runs, and eb-local --explain eb -- ARGS the one eb-local eb runs; The eb-local command says what each holds.

Where things go

Installs go into $HOME/eessi, EESSI-extend's own default, the prefix setting or --project DIR; a build works in a new workspace on a local disk, its allocation's node-local mount or the workstation's own, and keeps source archives and logs in <install-prefix>/.eb-local. Where a build puts things, and why says why, and Refusals lists what a build refuses before it makes anything.

A site's defaults

A site sets EasyBuild paths for every user with an Lmod hook that runs as EESSI-extend loads, and another default prefix with a login script and prefix in the site file. Set a site's EasyBuild defaults and default prefix has the steps, and Where EESSI-extend installs says why a hook can set neither an install path nor the prefix.

Build for every node type

A module is built for the CPU target of the node that built it; where the site file lists the node types in [build.node_types], eb-local --explain prints an sbatch line for each that runs the same build there. Build for every node type has the steps, and eb-local submit, deprecated until 4.0.0.

What you have, and what is wrong

Each CPU target has its own tree, so a module built on one node type is not there on another. eb-local list shows the modules you installed, with a column per CPU target, and eb-local doctor checks, one line each, what would stop a build, eb-local eb or a module load. Find what is wrong with a build or a module has the steps, and The eb-local command lists what doctor checks.

Clean up

eb-local clean --dry-run                        # what would go
eb-local clean                                  # logs older than 30 days, to the trash with rtrash
eb-local clean --sources                        # downloaded archives too
eb-local clean --workspaces --no-logs           # inside an allocation: its leftover workspaces
eb-local uninstall pigz/2.8-GCCcore-15.2.0      # for every CPU target, to the trash with rtrash
eb-local restore pigz/2.8-GCCcore-15.2.0        # back from the trash, read-only again

Clean up after builds, and remove what you installed has the steps, and The eb-local command the options.

Configuration

Settings come from, lowest first: built-in defaults, the site file, a site profile, your file, your profile, EB_LOCAL_* variables, options. eb-local config prints every setting and where it came from, and eb-local profiles the profiles; eb-local config --env prints the settings as variables for a job script, a container or CI. The configuration files lists the files, the profiles and every setting, The environment variables the variables, and Write the site file for a cluster has the steps for a site file.

Secrets

A build that needs a credential, such as a licence server or a token for a private source mirror, names in [secrets] where its value comes from, env:VARIABLE or file:PATH (nimvault:ENTRY is deprecated and is removed in 4.0.0), and never the value. A build gets every secret unless build.secrets names the ones it gets, and the logs written during it are cleaned of each value it gets. Give a secret only to the builds that need it has the steps, and What happens to a secret says when a value is read, where it goes and what is cleaned.

Install

On a cluster whose site installs eb-local, load its module. Otherwise, download the static binary for your architecture from a release, or build it from source with Zig 0.17.1: Install eb-local has the steps and the checks. In a source checkout, ./eb-local is a small shell shim that resolves its real directory, tries zig-out/bin/eb-local there, then searches each PATH directory for another eb-local. The shim has no command behavior of its own.

Contributing

Contributing has the tests, the news fragment each change adds, the site acceptance scripts in tests/site/, and how to build these pages.

License

MIT, see LICENSE.

Part of stackhands

eb-local is one of the stackhands tools for building, installing and maintaining an HPC software stack with EasyBuild on top of EESSI.

Tool Job Docs
eb-stack Turn conda-forge, Spack, PyPI, CRAN and Cargo recipes into easyconfigs; solve, shard and plan an EasyBuild build list docs
eb-staged-rebuild Rebuild an installation beside the live one and swap it in, for a stack outside CernVM-FS that jobs read during the rebuild docs
eessi-arch-guard Reload EESSI in a Slurm task that inherited a stack loaded for another CPU or GPU, as srun from a login shell does docs
eb-local Build on EESSI-extend inside a Slurm job's node-local disk, compile your own code with RPATH, list and uninstall per CPU target docs
eb-keep-logs Keep a failed EasyBuild command's own output, which --tmp-logdir does not; rotate a pipeline's log tree docs
eb-pipeline Drive a site's EasyBuild builds from one site file, through eb-stack, eb-staged-rebuild and eb-keep-logs docs
rfc9162 Append-only Merkle logs hashed as RFC 9162, with tiled storage and signed checkpoints docs
zig-common The shared Zig library under the Zig tools: system calls, checked files, child processes docs

About

Install software with EasyBuild on top of EESSI 2026.06 into a directory you own

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages