Skip to content

Commit

Permalink
Add new default_build_process setting to set the default build process (
Browse files Browse the repository at this point in the history
#1724)

Signed-off-by: predat <[email protected]>
  • Loading branch information
predat authored Jun 22, 2024
1 parent a13f7bb commit 9094b08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rez/cli/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ def setup_parser_common(parser):
"""Parser setup common to both rez-build and rez-release."""
from rez.build_process import get_build_process_types
from rez.build_system import get_valid_build_systems
from rez.config import config
from rez.exceptions import PackageMetadataError

process_types = get_build_process_types()
parser.add_argument(
"--process", type=str, choices=process_types, default="local",
"--process", type=str, choices=process_types,
default=config.default_build_process,
help="the build process to use (default: %(default)s).")

# add build system choices valid for this package
Expand Down
1 change: 1 addition & 0 deletions src/rez/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def _parse_env_var(self, value):
"release_packages_path": Str,
"dot_image_format": Str,
"build_directory": Str,
"default_build_process": Str,
"documentation_url": Str,
"suite_visibility": SuiteVisibility_,
"rez_tools_visibility": RezToolsVisibility_,
Expand Down
5 changes: 5 additions & 0 deletions src/rez/rezconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,11 @@
# leave this True.
use_variant_shortlinks = True

# Default build process to use during build/release.
# Only 'local' build process is currently available,
# see :gh-rez:`src/rezplugins/build_process`.
default_build_process = "local"


###############################################################################
# Suites
Expand Down

0 comments on commit 9094b08

Please sign in to comment.