From 6d17d371ba36dbdb8c8e8f9783ee54b1a4763e07 Mon Sep 17 00:00:00 2001 From: Stephen McDowell Date: Fri, 4 Nov 2022 15:16:53 -0400 Subject: [PATCH] [tmp] test in CI equivalent of https://github.com/RobotLocomotion/pybind11/pull/60 --- tools/workspace/lcm/patches/python-3.11.patch | 4 ++-- tools/workspace/pybind11/repository.bzl | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) 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):