s6.app.sim.install_package¶
Install Python packages into Blender’s embedded Python environment.
This module provides a small CLI that accepts one or more package names and
invokes s6.utils.blender.ensure_package to ensure they are available inside
Blender’s bundled Python interpreter. By default, it targets the blender
executable found on your PATH; you can override this with --blender.
Usage¶
From the project (installed or editable install):
python -m s6.app.sim.install_package numpy PillowOr directly (when
srcis onPYTHONPATH):python src/s6/app/sim/install_package.py numpy Pillow
- param Positional arguments:
One or more strings naming packages to ensure in Blender. Each string may be either an importable module name or a pip distribution identifier.
- param Options:
- param ——-:
- param –blender PATH:
Path to the Blender executable. Defaults to “blender”.
- s6.app.sim.install_package.parse_args(argv: List[str]) Namespace
- s6.app.sim.install_package.main(argv: List[str] | None = None) int
CLI entry point to install/ensure packages within Blender’s Python.
- Parameters:
argv (List[str], optional) – Argument vector excluding the program name. When
None(default), usessys.argv[1:].- Returns:
Process exit code (0 on success, non-zero on failure).
- Return type:
int