Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment variables

Read by hpm

VariableUsed byMeaning
HPM_SIGNING_KEYhpm packEd25519 signing key. A value starting with -----BEGIN is the PEM itself; anything else is a path to it. --key overrides it.
HPM_HOUDINI_MAJORShpm buildPassed through to prepack scripts when --houdini-majors is not given.
HOUDINI_USER_PREF_DIRhpm globalOverrides Houdini’s preferences directory, with __HVER__ expanded to the X.Y version, as Houdini does.
RUST_LOGevery commandLog filter, for example RUST_LOG=debug or RUST_LOG=hpm_core::python=trace. Replaces the level -v selects.
HOME (USERPROFILE on Windows)every commandWhere ~/.hpm is.

hpm has no variable for the location of its home or for credentials. Move the home with [storage] home_dir.

Set by hpm for scripts

hpm run, and the [stage].prepack scripts hpm build runs, start each script with:

VariableSet whenValue
HPM_PACKAGE_ROOTalwaysThe directory holding hpm.toml. Also the script’s working directory.
VIRTUAL_ENV, and the venv’s bin/ (or Scripts\) first on PATHthe script declares python or requirements, or package-env = trueThe script’s venv.
PYTHONPATHpackage-env = trueThe package’s python/, each dependency’s python/, then the venv’s site-packages.
HPM_BUILD_PROFILEprepack scripts onlyThe --profile name; release by default.
HPM_PLATFORMprepack scripts only, when [compat].platforms is declaredThe target platform, for example macos-aarch64.
HPM_HOUDINI_MAJORSprepack scripts only, when givenThe --houdini-majors value, or the inherited variable. Space-separated majors, for example 21 22.

Usable in hpm.toml

$HPM_PACKAGE_ROOT in a [runtime] value is replaced with the installed package’s directory when the Houdini package file is written. Any other $VAR is left for Houdini to expand at startup.

Set for Houdini

hpm sets nothing in your shell. What Houdini sees comes from the package files hpm generates: HOUDINI_PATH (through hpath), PYTHONPATH, HOUDINI_SCRIPT_PATH, and whatever the packages’ [runtime] sections declare. The one variable you set yourself is HOUDINI_PACKAGE_PATH; see How Houdini loads hpm packages.

For hpm’s own test suite

VariableMeaning
HPM_REQUIRE_HOUDINI=1Fail the Houdini conformance tests instead of skipping them when no Houdini is installed.
HFSThe Houdini installation those tests use.