| layout | default |
|---|---|
| title | Distribution |
| description | How pathbase example environments are distributed with distman. |
pathbase includes a dist.json file for use with
distman.
The root dist.json distributes:
- the
pathbasePython package - several example
pathbase.envfiles under named targets
distman already supports target
selection from the CLI with -t / --target, so the practical way to choose
an example env file is to define a separate target for each example in
dist.json.
For example, to distribute the VFX pathbase.env:
dist -t env_vfxThat copies:
examples/vfx/pathbase.env
to:
{DEPLOY_ROOT}/env/pathbase.env
Each of those targets deploys its selected example env file to the same destination. This means the target name selects which example file is disted, while the destination path stays stable for downstream tools.
Each example also has token rules in a rules.json
next to its pathbase.env, and a matching conf_* target that deploys them
outside env/, which holds only envstack stacks:
| Env target | Rules target |
|---|---|
env_vfx |
conf_vfx |
env_animation |
conf_animation |
env_data_pipeline |
conf_data_pipeline |
env_logs |
conf_logs |
env_ml |
conf_ml |
dist -t env_vfx
dist -t conf_vfx{DEPLOY_ROOT}/conf/pathbase/rules.json
Point PATHBASE_RULES at that file, and add a tool's own rules after it,
e.g. {DEPLOY_ROOT}/conf/<tool>/rules.json.
- no special distman flag is required
- each example stays explicit and discoverable
- teams can choose which env file to distribute by target name
- downstream consumers can always read the same deployed env filename
- additional example flavors can be added later without changing the CLI model