Environment Variables#
This page lists environment variables used by conda-ship and generated runtimes.
Builder Variables#
CONDA_SHIP_TEMPLATEPath to a prebuilt generic runtime template.
cs builduses this when--templateis not supplied and no installed template is found next tocs.CONDA_SHIP_EXECUTABLEPath used by the Python
conda shipadapter to find thecsexecutable. This is mainly useful for source checkouts, tests, and custom packaging. If set, it must point to an executable file. The adapter does not fall back to anothercswhen this value is invalid.CONDA_SHIP_ERROR_FORMATInternal diagnostic format used by the Python
conda shipadapter. When set tojson,cswrites a single structured JSON diagnostic line for builder failures. The adapter parses that line and renders a normal conda-facing error. Users normally do not need to set this themselves.
Runtime Variables#
CONDA_SHIP_PREFIXUniversal managed-prefix override. It takes precedence over a runtime-specific prefix variable. Use this for a runtime named
condabecause that runtime does not treatCONDA_PREFIXas an install override.CONDA_PREFIXcan describe an activated conda environment and must not redirect the runtime bootstrap.
The remaining runtime variable names are derived from runtime-name.
Non-alphanumeric characters become underscores and letters are uppercased.
RUNTIME_PREFIXOverride the managed prefix path. For a runtime named
demo, the variable isDEMO_PREFIX. This compatibility variable is accepted for runtime names other thanconda.CONDA_SHIP_PREFIXtakes precedence when both are set.RUNTIME_BUNDLERuntime-specific path to an external package bundle directory. The actual variable name is based on the runtime name. Non-alphanumeric characters become underscores and letters are uppercased. For
demo, the variable isDEMO_BUNDLE.RUNTIME_OFFLINERuntime-specific flag for offline bootstrap mode. For
demo, the variable isDEMO_OFFLINE. Empty,0, andfalsedisable the flag. Other non-empty values enable it.
Runtime Update Coordinator Variables#
These variables define the version-one child-process contract for downstream transaction coordinators. They are not normal user-facing runtime controls. See Generated Runtime Reference for the required bootstrap, lock, and call sequence.
CONDA_SHIP_INTERNAL_UPDATESelect the helper action. Version one defines
v1/record-installation,v1/check,v1/stage, andv1/apply. Generated runtimes do not reserve a delegate subcommand for these operations.CONDA_SHIP_INTERNAL_UPDATE_CANDIDATELowercase SHA256 selected from the
v1/checkresult. It is required byv1/stageand is ignored by the other actions.CONDA_SHIP_INTERNAL_UPDATE_OFFLINEDisable network access for update resolution and staging. Empty,
0, andfalsedisable the flag. Other non-empty values enable it. An HTTPS update requires previously cached repodata and package content in this mode. Afile://channel is read directly.CONDA_SHIP_INTERNAL_UPDATE_OWNERSHIPInstalled executable ownership for
v1/record-installation. Supported values aredirectandexternal.CONDA_SHIP_INTERNAL_UPDATE_INSTALLATIONNon-blank installation label for
v1/record-installation, such asstandalone,constructor,homebrew,pipx, oruv-tool. The value is stored unchanged.CONDA_SHIP_INTERNAL_UPDATE_EXECUTABLEOptional absolute stable executable path for
v1/record-installation. The path must resolve to the running executable. When omitted, the runtime uses its invocation path.CONDA_SHIP_INTERNAL_UPDATE_INSTRUCTIONOptional non-empty external-manager instruction for
v1/record-installation. Direct ownership rejects this variable.
Delegate Environment#
The runtime executes the configured delegate from the managed prefix without
presenting that prefix as an activated conda environment. It does not set
CONDA_PREFIX, CONDA_DEFAULT_ENV, or CONDA_SHLVL. Delegate arguments and
the inherited process streams remain unchanged.
PATHManaged-prefix executable directories are prepended to the inherited value so the delegate and its child processes can find installed commands and shared libraries. This changes
PATHonly. It does not activate the prefix.
Test And Development Variable#
CONDA_SHIP_ALLOW_UNSTAMPED_TEMPLATEAllows the generic runtime template binary to run without stamped runtime data. This is used by tests. Downstream runtimes should not set it.
Warning
Do not set CONDA_SHIP_ALLOW_UNSTAMPED_TEMPLATE in distribution builds or user
environments. It exists only so tests can exercise the generic template binary.