Skip to content

Commit

Permalink
Support .bzl.<N> suffixes for pybind11_bazel versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
junyer committed Nov 15, 2023
1 parent 2e5f4a6 commit c65db0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ def _extension_impl(ctx):
)

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

0 comments on commit c65db0a

Please sign in to comment.