anod.deps¶
Anod dependency management.
Module Contents¶
Classes¶
Declare a dependency between an Anod spec and a variable. |
|
Represent a dependency between Anod specifications. |
Attributes¶
- anod.deps.logger¶
- class anod.deps.BuildVar(name: str, value: collections.abc.Hashable)¶
Declare a dependency between an Anod spec and a variable.
- __str__() str¶
Return string representation of variable dependency.
- class anod.deps.Dependency(name: str, product_version: str | None = None, host: str | None = None, target: str | None = None, build: str | None = None, qualifier: str | None | dict[str, str | bool | frozenset] = None, local_name: str | None = None, require: Literal[build_tree, installation, download, source_pkg, test] = 'build_tree', track: bool = False, **kwargs: Any)¶
Represent a dependency between Anod specifications.
- kind: e3.anod.spec.DEPENDENCY_PRIMITIVE¶
- ALLOWED_REQUIRE: ClassVar[dict[str, str]]¶
- env(parent: e3.anod.spec.Anod, default_env: e3.env.BaseEnv) e3.env.BaseEnv¶
Retrieve env for the dependency.
- Parameters:
parent – Anod instance in which the dep was declared
default_env – default env for the current context
- Returns:
env object that should be used by the dependency