Skip to content

fontlab_instamix.packages · declarations 001

Back to fontlab_instamix.packages

dist_name

dist_name(folder: str) -> str

Distribution name from a *.dist-info folder name.

install

install(data: Path, specs: list[str], *, upgrade: bool = False, uv_bin: Path | None = None, runner=run, target: Target | None = None) -> CompletedProcess

Install specs into <data>/python/3.11/site-packages.

install_args

install_args(data: Path, specs: list[str], *, upgrade: bool = False, target: Target | None = None) -> list[str]

uv arguments (without the uv binary) for installing specs.

install_packages

install_packages(*specs: str, data: Path | None = None) -> CompletedProcess

Install distribution requirements for a script; existing imports are not reloaded.

listed

listed(data: Path, *, target: Target | None = None) -> list[tuple[str, str]]

(name, version) of every distribution in site-packages.

uninstall

uninstall(data: Path, name: str, *, target: Target | None = None) -> list[str]

Remove a distribution installed with --target using its RECORD.

uv pip uninstall cannot address a --target folder, so this reads the RECORD file directly. Returns the removed relative paths.