Skip to content

fontlab_instamix.env · declarations 001

Back to fontlab_instamix.env

DATA_ENV module-attribute

DATA_ENV

FONTLAB_PYTHON module-attribute

FONTLAB_PYTHON

STANDARD_FOLDERS module-attribute

STANDARD_FOLDERS

check_folders

check_folders(data: Path, *, version: str | None = None) -> list[Path]

Check every standard directory before creating any of them.

data_dir

data_dir(explicit: str | PathLike | None = None) -> Path

Return the FontLab data folder (not created).

describe

describe(data: Path | None = None) -> dict

Summary used by fontlab-instamix env.

ensure_folders

ensure_folders(data: Path, *, version: str | None = None) -> None

Create the standard data subfolders instamix links into.

fontlab_data_dir

fontlab_data_dir() -> Path | None

Ask FontLab for its data folder; None outside FontLab.

inside

inside(data: Path, path: Path) -> bool

Check resolved parent containment, allowing a final editable package link.

machine

machine() -> str

Normalised CPU architecture: arm64 or x86_64.

normalize_arch

normalize_arch(name: str) -> str

python_version

python_version() -> str

major.minor of the running Python, e.g. 3.11.

require_inside

require_inside(data: Path, path: Path) -> None

Refuse destination parents outside the resolved data root.

site_packages

site_packages(data: Path, *, version: str | None = None) -> Path

<data>/python/3.11/site-packages used by FontLab's sys.path.

target

target() -> Target

Use embedded host facts; standalone defaults explicitly to FontLab 9.

uv_platform

uv_platform(plat: str = platform, arch: str | None = None) -> str

Target triple for uv pip install --python-platform.