bazel: pretty print is all but pretty (#35963)

* bazel: pretty print is all but pretty
* Don't ask bazel to explain what it's up to
This commit is contained in:
Harmen Stoppels 2023-08-13 02:43:09 +02:00 committed by GitHub
parent e67c61aac0
commit 7e7e6c2797
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 1 additions and 50 deletions

View file

@ -519,14 +519,7 @@ def setup_build_environment(self, env):
# Spack's logs don't handle colored output well
"--color=no --host_javabase=@local_jdk//:jdk"
# Enable verbose output for failures
" --verbose_failures"
# Ask bazel to explain what it's up to
# Needs a filename as argument
" --explain=explainlogfile.txt"
# Increase verbosity of explanation,
" --verbose_explanations"
# Show (formatted) subcommands being executed
" --subcommands=pretty_print" " --jobs={0}".format(make_jobs),
" --verbose_failures --jobs={0}".format(make_jobs),
)
@run_before("install")

View file

@ -52,14 +52,7 @@ def patch(self):
"'--jobs={0}',\n".format(make_jobs),
# Enable verbose output for failures
"'--verbose_failures',\n",
# Show (formatted) subcommands being executed
"'--subcommands=pretty_print',\n",
"'--spawn_strategy=local',\n",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"'--explain=explainlogfile.txt',\n",
# Increase verbosity of explanation,
"'--verbose_explanations',\n",
# bazel uses system PYTHONPATH instead of spack paths
"'--action_env', 'PYTHONPATH={0}',\n".format(env["PYTHONPATH"]),
]

View file

@ -115,14 +115,7 @@ def install(self, spec, prefix):
"--jobs={0}".format(make_jobs),
# Enable verbose output for failures
"--verbose_failures",
# Show (formatted) subcommands being executed
"--subcommands=pretty_print",
"--spawn_strategy=local",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"--explain=explainlogfile.txt",
# Increase verbosity of explanation,
"--verbose_explanations",
# bazel uses system PYTHONPATH instead of spack paths
"--action_env",
"PYTHONPATH={0}".format(env["PYTHONPATH"]),

View file

@ -74,14 +74,7 @@ def install(self, spec, prefix):
"--jobs={0}".format(make_jobs),
# Enable verbose output for failures
"--verbose_failures",
# Show (formatted) subcommands being executed
"--subcommands=pretty_print",
"--spawn_strategy=local",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"--explain=explainlogfile.txt",
# Increase verbosity of explanation,
"--verbose_explanations",
# bazel uses system PYTHONPATH instead of spack paths
"--action_env",
"PYTHONPATH={0}".format(env["PYTHONPATH"]),

View file

@ -49,14 +49,7 @@ def install(self, spec, prefix):
"--jobs={0}".format(make_jobs),
# Enable verbose output for failures
"--verbose_failures",
# Show (formatted) subcommands being executed
"--subcommands=pretty_print",
"--spawn_strategy=local",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"--explain=explainlogfile.txt",
# Increase verbosity of explanation,
"--verbose_explanations",
# bazel uses system PYTHONPATH instead of spack paths
"--action_env",
"PYTHONPATH={0}".format(env["PYTHONPATH"]),

View file

@ -69,14 +69,7 @@ def install(self, spec, prefix):
"--jobs={0}".format(make_jobs),
# Enable verbose output for failures
"--verbose_failures",
# Show (formatted) subcommands being executed
"--subcommands=pretty_print",
"--spawn_strategy=local",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"--explain=explainlogfile.txt",
# Increase verbosity of explanation,
"--verbose_explanations",
# bazel uses system PYTHONPATH instead of spack paths
"--action_env",
"PYTHONPATH={0}".format(env["PYTHONPATH"]),

View file

@ -932,13 +932,6 @@ def build(self, spec, prefix):
"--config=opt",
# Enable verbose output for failures
"--verbose_failures",
# Show (formatted) subcommands being executed
"--subcommands=pretty_print",
# Ask bazel to explain what it's up to
# Needs a filename as argument
"--explain=explainlogfile.txt",
# Increase verbosity of explanation,
"--verbose_explanations",
]
if spec.satisfies("^bazel@:3.5"):