diff --git a/tools/workspace/lcm/patches/python-3.11.patch b/tools/workspace/lcm/patches/python-3.11.patch index 00dfb67320be..79d6a1da3a96 100644 --- a/tools/workspace/lcm/patches/python-3.11.patch +++ b/tools/workspace/lcm/patches/python-3.11.patch @@ -1,5 +1,5 @@ ---- a/lcm-python/module.c -+++ b/lcm-python/module.c +--- lcm-python/module.c ++++ lcm-python/module.c @@ -31,6 +31,18 @@ PyDoc_STRVAR(lcmmod_doc, "LCM python extension modules"); #define MOD_DEF(ob, name, doc, methods) ob = Py_InitModule3(name, methods, doc); #endif diff --git a/tools/workspace/pybind11/repository.bzl b/tools/workspace/pybind11/repository.bzl index 6f3a4011be8f..3f33eff1cac2 100644 --- a/tools/workspace/pybind11/repository.bzl +++ b/tools/workspace/pybind11/repository.bzl @@ -24,6 +24,9 @@ def pybind11_repository( sha256 = _SHA256, build_file = ":package.BUILD.bazel", mirrors = mirrors, + patches = [ + ":patches/python-3.11.patch", + ] ) def generate_pybind11_version_py_file(name):