Skip to content

Commit 213d4df

Browse files
committed
Upgrade to pybind11 v3 prerelease
- This is a breaking change, but it's worth it, and nobody uses robotpy-build anyways
1 parent 40aa96c commit 213d4df

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

robotpy_build/autowrap/render_pybind11.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ def cls_decl(r: RenderBuffer, cls: ClassContext):
338338
class_params.append(
339339
f"std::unique_ptr<typename {cls.full_cpp_name}, py::nodelete>"
340340
)
341+
else:
342+
class_params.append("py::smart_holder")
341343

342344
if cls.trampoline:
343345
class_params.append(cls.trampoline.var)

robotpy_build/command/build_ext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ def _spawn(cmd):
134134
self.compiler._rpy_spawn = self.compiler.spawn
135135
self.compiler.spawn = _spawn
136136
for ext in self.extensions:
137-
ext.define_macros.append(("PYBIND11_USE_SMART_HOLDER_AS_DEFAULT", "1"))
138137
if debug:
139138
ext.define_macros.append(
140139
("PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF", "1")

robotpy_build/pybind11

Submodule pybind11 updated 153 files

0 commit comments

Comments
 (0)