Skip to content

consume pybind11_abseil as a dev_dependency - #251

Open
dws wants to merge 1 commit into
pybind:mainfrom
dws:pybind11_abseil-dev_dependency
Open

dws wants to merge 1 commit into
pybind:mainfrom
dws:pybind11_abseil-dev_dependency

Conversation

@dws

@dws dws commented Nov 6, 2026

Copy link
Copy Markdown

Since pybind11_protobuf uses pybind11_abseil only in its internal tests, we can treat it as a dev_dependency. This helps to avoid diagnostics from newer versions of rules_python as follows:

DEBUG: /private/var/tmp/_bazel_phawkins/2c4ae1b95137b6eaec60bd8deca2f50d/external/rules_python+/python/private/pypi/extension.bzl:396:26: WARNING: The PyPI hub name 'pypi' is reserved (module 'pybind11_abseil'). Please rename your hub, otherwise a future release will rename it to 'pybind11_abseil_pypi'.

This fix has landed in pybind11_abseil in

https://github.com/pybind/pybind11_abseil/commit/65c170cf389f79f1561e0d12a376b45996aef487

but there has been no new release of pybind11_abseil in the Bazel Central Registry that includes this fix.

Since pybind11_protobuf uses pybind11_abseil only in its internal tests,
we can treat it as a dev_dependency.  This helps to avoid diagnostics
from newer versions of rules_python as follows:

    DEBUG: /private/var/tmp/_bazel_phawkins/2c4ae1b95137b6eaec60bd8deca2f50d/external/rules_python+/python/private/pypi/extension.bzl:396:26: WARNING: The PyPI hub name 'pypi' is reserved (module 'pybind11_abseil'). Please rename your hub, otherwise a future release will rename it to 'pybind11_abseil_pypi'.

This fix has landed in pybind11_abseil in

    pybind/pybind11_abseil@65c170c

but there has been no new release of pybind11_abseil in the Bazel
Central Registry that includes this fix.
@Mizux

Mizux commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

FYI we are working hard to bring pybind_abseil up to date and soon provide a new release...

@dws

dws commented Nov 6, 2026

Copy link
Copy Markdown
Author

FYI we are working hard to bring pybind_abseil up to date and soon provide a new release...

I'm delighted to hear it!

Still, since pybind_protobuf consumes pybind_abseil only for internal testing, it seems reasonable to make it a dev_dependency. Do you agree?

@dws

dws commented Nov 6, 2026

Copy link
Copy Markdown
Author

Since the change I'm proposing here pertains only to Bazel, I strongly suspect the CMake CI failures are unrelated to my changes.

@dws
dws marked this pull request as ready for review November 6, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants