Skip to content

Commit c65db0a

Browse files
committed
Support .bzl.<N> suffixes for pybind11_bazel versions.
1 parent 2e5f4a6 commit c65db0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python_configure.bzl

+3
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ def _extension_impl(ctx):
475475
)
476476

477477
version = _parse_my_own_version_from_module_dot_bazel(ctx)
478+
# The pybind11_bazel version should typically just be the pybind11 version,
479+
# but can end with ".bzl.<N>" if the Bazel plumbing was updated separately.
480+
version = version.split(".bzl.")[0]
478481
http_archive(
479482
name = "pybind11",
480483
build_file = "//:pybind11.BUILD",

0 commit comments

Comments
 (0)