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#
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 Delegate Environment#
When a runtime runs its delegate, it sets a conda-like base environment:
CONDA_ROOT_PREFIXManaged prefix path.
CONDA_PREFIXManaged prefix path.
CONDA_DEFAULT_ENVbase.CONDA_SHLVL1.PATHManaged prefix executable directories first, followed by the existing
PATH.
On Unix, the runtime prepends:
bincondabin
On Windows, the runtime prepends:
the root prefix
Library/mingw-w64/binLibrary/usr/binLibrary/binScriptsbincondabin
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.