Skip to content

Commit

Permalink
Remove #include <pybind11/type_caster_pyobject_ptr.h> from absl_cas…
Browse files Browse the repository at this point in the history
…ters.h

While working on pybind/pybind11#4674 I came to realize that this include is not needed here.

Note however that the pybind11/cast.h changes under pybind/pybind11#4601 are still needed, therefore pybind11_abseil still requires current pybind11 master.

PiperOrigin-RevId: 533182724
  • Loading branch information
Ralf W. Grosse-Kunstleve authored and copybara-github committed May 18, 2023
1 parent 53f661e commit 7d17c90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ http_archive(
build_file = "@pybind11_bazel//:pybind11.BUILD",
strip_prefix = "pybind11-master",
urls = ["https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz"],
# For easy local testing with pybind11 releases:
# * Comment out the 2 lines above.
# * Uncomment and update the 3 lines below.
# * To compute the sha256 string:
# * Download the .tar.gz file (e.g. curl or wget).
# * sha256sum v2.10.4.tar.gz
# strip_prefix = "pybind11-2.10.4",
# sha256 = "832e2f309c57da9c1e6d4542dedd34b24e4192ecb4d62f6f4866a737454c9970",
# urls = ["https://github.com/pybind/pybind11/archive/refs/tags/v2.10.4.tar.gz"],
)

load("@pybind11_bazel//:python_configure.bzl", "python_configure")
Expand Down
1 change: 0 additions & 1 deletion pybind11_abseil/absl_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <pybind11/cast.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/type_caster_pyobject_ptr.h>

// Must NOT appear before at least one pybind11 include.
#include <datetime.h> // Python datetime builtin.
Expand Down

0 comments on commit 7d17c90

Please sign in to comment.