rez.resolver

class rez.resolver.Resolver(context, package_requests, package_paths, package_filter=None, package_orderers=None, timestamp=0, callback=None, building=False, verbosity=False, buf=None, package_load_callback=None, caching=True, suppress_passive=False, print_stats=False)[source]

Bases: object

The package resolver.

The Resolver uses a combination of Solver(s) and cache(s) to resolve a package request as quickly as possible.

property graph

Return the resolve graph.

The resolve graph shows unsuccessful as well as successful resolves.

Returns

A pygraph.digraph object, or None if the solve has not completed.

property resolved_ephemerals

Get the list of resolved ewphemerals.

Returns

List of Requirement objects, or None if the resolve has not completed.

property resolved_packages

Get the list of resolved packages.

Returns

List of PackageVariant objects, or None if the resolve has not completed.

solve()[source]

Perform the solve.

property status

Return the current status of the resolve.

Returns

ResolverStatus.

class rez.resolver.ResolverStatus(value, names=None, module=None, type=None)[source]

Bases: rez.vendor.enum.Enum

Enum to represent the current state of a resolver instance. The enum also includes a human readable description of what the state represents.