rez.developer_package
- class rez.developer_package.DeveloperPackage(resource)[source]
Bases:
rez.packages.PackageA developer package.
This is a package in a source directory that is subsequently built or released.
- classmethod from_path(path, format=None)[source]
Load a developer package.
A developer package may for example be a package.yaml or package.py in a user’s source directory.
- Parameters
path (str) – Directory containing the package definition file, or file path for the package file itself
format (FileFormat, optional) – If provided, a package must match this format (.py, .yaml, etc). Leave empty to allow any valid package format.
- Raises
PackageMetadataError – If
pathdoes not exist or isn’t readable.- Returns
The created object.
- Return type
- get_reevaluated(objects)[source]
Get a newly loaded and re-evaluated package.
Values in objects are made available to early-bound package attributes. For example, a re-evaluated package might return a different value for an early-bound ‘private_build_requires’, depending on the variant currently being built.
- Parameters
objects (dict) – Variables to expose to early-bound package attribs.
- Returns
New package.
- Return type
DeveloperPackage
- property root