Environment variables¶
eb-local reads the variables below.
The lines eb-local env and eb-local dev print, and a build, set others, listed after them.
Settings¶
Each of these sets a setting in place of the configuration files, and an option sets it in place of the variable. The configuration files describes each setting, and each value is checked as it is there. An empty variable is ignored, unless the table says what it does.
Variable |
Setting |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the secret NAME, whose source is the value, as in |
The site settings, storage.*, build.site_toolchains and build.node_types, have no variable.
eb-local config --env prints export lines for the variables that carry the settings in force, after EB_LOCAL_PROFILE='', so that no profile applies beneath them.
Others eb-local reads¶
Variable |
What eb-local does with it |
|---|---|
|
Names the profile when |
|
Names a configuration file to read when |
|
|
|
|
|
Set by a build with |
|
Set by a build with |
|
Where the internal |
|
|
|
|
|
Positive integer milliseconds to wait for a busy |
|
Set, not empty and not |
|
Set, not empty and not |
|
The versioned state written by |
|
The wrapper directory an earlier |
|
Stands for |
|
Holds the user file, |
|
Holds the RPATH wrappers, below |
|
The job a build runs in, whose node-local mount it uses; without it, a build and |
|
Choose where |
|
Name the EESSI repository (default |
|
Checked by |
|
Used by |
|
Checked by |
|
Read by |
|
A build does not pass them on, and warns; |
|
Where eb-local finds bash, rtrash, nimvault, sbatch and eessi-arch-guard, and the compilers |
eb-local eb also supplies configured [eessi] variables and
build.site_toolchains unless the shell already exports the corresponding
variable. It sets EASYBUILD_SOURCEPATH to
<install-prefix>/.eb-local/sources only when the shell did not export it;
no user-exported EASYBUILD_* variable is replaced.
Set by env and dev¶
The lines eb-local env prints, in order:
load Lmod when the shell has no
modulecommand, and unload EESSI-extend;unset
EESSI_CVMFS_INSTALL,EESSI_SITE_INSTALL,EESSI_USER_INSTALL,EESSI_PROJECT_INSTALL,EESSI_SITE_SOFTWARE_PREFIX,EESSI_SOFTWARE_SUBDIR_OVERRIDE,EESSI_ACCELERATOR_TARGET_OVERRIDE,EESSI_OVERRIDE_GPU_CHECK,EASYBUILD_INSTALLPATH,EASYBUILD_INSTALLPATH_SOFTWARE,EASYBUILD_INSTALLPATH_MODULESandEASYBUILD_PREFIX;set
EESSI_USER_INSTALLto the prefix, orEESSI_PROJECT_INSTALLto the project directory;set each
[eessi]variable;load the EESSI module; let eessi-arch-guard, when it is on
PATH, move it to the CPU target the guard selects; and load the EESSI-extend module when the prefix exists;with
build.site_toolchains, setEESSI_SITE_TOP_LEVEL_TOOLCHAINS_<EESSI version>, with_for each.of the version, to the toolchains as JSON:[{"name": "intel", "version": "2026.1"}].
The modules set variables of their own.
The lines eb-local dev prints do the same, load the modules and a build environment, and set:
Variable |
Value |
|---|---|
|
|
|
The state from before the first |
|
The RPATH wrappers’ directory first, when eb-local writes wrappers |
|
The RPATH wrappers’ directory, when eb-local writes wrappers |
|
|
|
|
|
|
|
A matching Go workspace and module cache under |
|
Internal marker for Go paths that |
|
|
|
The |
|
The host’s CA bundle, when the host has none at |
EESSI’s cargo and curl look for the CA bundle at /etc/ssl/certs/ca-certificates.crt. A host that keeps it at /etc/pki/tls/certs/ca-bundle.crt, /etc/ssl/ca-bundle.pem or /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem would leave them without one, so dev names the first of those that is readable.
Set for a build¶
The script a build runs gets eb-local’s environment without the variables env unsets, BASH_ENV, ENV, SHELLOPTS, BASHOPTS, LD_LIBRARY_PATH, LD_PRELOAD and LD_AUDIT.
With build.clear_foreign_prefixes or EB_LOCAL_BUILD_CLEAR_FOREIGN_PREFIXES set, it also drops entries of PERL5LIB, PYTHONPATH, R_LIBS*, JULIA_LOAD_PATH, JULIA_DEPOT_PATH, NODE_PATH, CMAKE_PREFIX_PATH and PKG_CONFIG_PATH that lie outside the approved prefixes, and unsets a compiler-wrapper variable, a CARGO_TARGET_*_LINKER, or R_MAKEVARS_USER or R_MAKEVARS_SITE, that resolves outside them.
Off, which is the default, a build keeps those variables.
The approved prefixes are the EESSI repository, the install prefix, the four EESSI install variables, doctor.approved_prefixes and eb-local’s RPATH wrapper directory.
A relative entry and an empty entry in those lists count as outside the approved prefixes. An empty entry of JULIA_LOAD_PATH or JULIA_DEPOT_PATH and a load-path entry starting with @ are Julia’s own and stay. eb-local doctor names each foreign entry either way.
It sets these, where W is the workspace the build makes in its job’s node-local mount:
Variable |
Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It also sets the install variable, each [eessi] variable and the site toolchains as env does, and loads the EESSI and EESSI-extend modules; after each load it sets the variables above again, whatever the module set.
The secrets reach eb’s environment only.
eb-local --explain prints the script and this environment for one build, without running it.
See also¶
Where EESSI-extend installs, for the install variables.
eb-stack’s targets, for an EESSI target that runs eb-local.