Skip to content

Commit

Permalink
Add REZ_USED_LOCAL_RESOLVE context environment variable
Browse files Browse the repository at this point in the history
Populate the environment variable "REZ_USED_LOCAL_RESOLVE" in the same style as REZ_USED_EPH_RESOLVE for any packages resolved to a local destination
  • Loading branch information
JoshkVFX authored Sep 15, 2022
1 parent 71f2f61 commit 9e01c5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rez/resolved_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1959,6 +1959,7 @@ def normalized(path):
request_str = ' '.join(str(x) for x in self._package_requests)
implicit_str = ' '.join(str(x) for x in self.implicit_packages)
resolve_str = ' '.join(x.qualified_package_name for x in resolved_pkgs)
local_packages_str = ' '.join(x.qualified_package_name for x in current_context.resolved_packages if x.is_local)
req_timestamp_str = str(self.requested_timestamp or 0)
package_paths_str = executor.interpreter.pathsep.join(
normalized(x) for x in self.package_paths
Expand All @@ -1979,6 +1980,9 @@ def normalized(path):
eph_resolve_str = ' '.join(str(x) for x in ephemerals)
executor.setenv("REZ_USED_EPH_RESOLVE", eph_resolve_str)

if local_packages_str:
executor.setenv("REZ_USED_LOCAL_RESOLVE", local_packages_str)

if self.building:
executor.setenv("REZ_BUILD_ENV", "1")

Expand Down

0 comments on commit 9e01c5c

Please sign in to comment.