rez.developer_package#
- class rez.developer_package.PreprocessMode#
Defines when a package preprocess will be executed.
- class rez.developer_package.DeveloperPackage#
A developer package.
This is a package in a source directory that is subsequently built or released.
- __init__(resource)#
- classmethod from_path(path, format=None)#
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 – Directory containing the package definition file, or file path for the package file itself
format – which FileFormat to use, or None to check both .py and .yaml
- Returns:
Package object.
- get_reevaluated(objects)#
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