Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new default_build_process setting to set the default build process #1724

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading