Skip to content

Commit

Permalink
Add a dummy_function() in absl_casters.h (functional no-op).
Browse files Browse the repository at this point in the history
The only purpose of this change is to trigger testing.

PiperOrigin-RevId: 658829495
  • Loading branch information
Ralf W. Grosse-Kunstleve authored and copybara-github committed Aug 2, 2024
1 parent 28db3c6 commit 8e284ad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
16 changes: 3 additions & 13 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,9 @@ bazel_dep(
version = "0.0.8"
)

http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "pybind11_bazel",
strip_prefix = "pybind11_bazel-master",
urls = ["https://github.com/pybind/pybind11_bazel/archive/refs/heads/master.tar.gz"],
)

http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11-BUILD.bazel",
strip_prefix = "pybind11-master",
urls = ["https://github.com/pybind/pybind11/archive/refs/heads/master.tar.gz"],
bazel_dep(
name = "pybind11_bazel",
version = "2.11.1.bzl.2",
)

#### DEV ONLY DEPENDENCIES BELOW HERE ####
Expand Down
9 changes: 5 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,20 @@ load("@pypi//:requirements.bzl", "install_deps")
install_deps()


## `pybind11_bazel` (FLOATING)
## `pybind11_bazel` (PINNED)
# https://github.com/pybind/pybind11_bazel
http_archive(
name = "pybind11_bazel",
strip_prefix = "pybind11_bazel-master",
urls = ["https://github.com/pybind/pybind11_bazel/archive/refs/heads/master.tar.gz"],
strip_prefix = "pybind11_bazel-2.11.1.bzl.2",
sha256 = "e2ba5f81f3bf6a3fc0417448d49389cc7950bebe48c42c33dfeb4dd59859b9a4",
urls = ["https://github.com/pybind/pybind11_bazel/releases/download/v2.11.1.bzl.2/pybind11_bazel-2.11.1.bzl.2.tar.gz"],
)

## `pybind11` (FLOATING)
# https://github.com/pybind/pybind11
http_archive(
name = "pybind11",
build_file = "@pybind11_bazel//:pybind11-BUILD.bazel",
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:
Expand Down
2 changes: 2 additions & 0 deletions pybind11_abseil/absl_casters.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ struct type_caster<absl::CivilYear>

namespace internal {

inline void dummy_function() {}

template <typename T>
static constexpr bool is_buffer_interface_compatible_type =
detail::is_same_ignoring_cvref<T, PyObject*>::value ||
Expand Down

0 comments on commit 8e284ad

Please sign in to comment.