Closed
Description
When trying to use these rules with an environment containing remote build executions, I get the following issue:
ERROR: /private/var/tmp/XXX/8b6b555df13b04c162b6251aa1bfe8e3/external/local_config_python/BUILD:67:8: Executing genrule @local_config_python//:python_include failed: Genrule spawn cannot be executed with any of the available strategies: [remote]. Your --spawn_strategy, --genrule_strategy and/or --strategy flags are probably too strict. Visit https://github.com/bazelbuild/bazel/issues/7480 for advice
Target //third_party/man-group/ArcticDB:ArcticDB failed to build
ERROR: /private/var/tmp/XXX/8b6b555df13b04c162b6251aa1bfe8e3/external/local_config_python/BUILD:45:11 Middleman _middlemen/@local_Uconfig_Upython_S_S_Cpython_Uheaders-cc_library-compile failed: Genrule spawn cannot be executed with any of the available strategies: [remote]. Your --spawn_strategy, --genrule_strategy and/or --strategy flags are probably too strict. Visit https://github.com/bazelbuild/bazel/issues/7480 for advice
This is when using the following in WORKSPACE
:
http_archive(
name = "rules_python",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.25.0.zip",
sha256 = "9ffcbf19b197153d7ceafb126eb05b7b5ce847aa4e1745f03feed298b4940e2c",
strip_prefix = "rules_python-0.25.0",
)
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python3_9",
python_version = "3.9",
)
load("@python3_9//:defs.bzl", "interpreter")
python_configure(
name = "local_config_python",
python_interpreter_target = interpreter,
)
It seems that pybind11_bazel forces things to run locally due to local = 1
in the following piece of code:
pybind11_bazel/python_configure.bzl
Line 101 in c65db0a
I was wondering if there was a reason local was forced here, and if not can I either remove it or add an option to remove this flag?
This commit seems to add the local option: 992381c
Having said that local is always true, so maybe it just needs to be propagated?
Metadata
Metadata
Assignees
Labels
No labels