mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
fix: Python 3.13t with GIL (#5139)
* ci: try Python 3.13t Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * fix: support Python 3.13t Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * fix: patch PyPy Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * tests: one more int cast Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * tests: cleanup Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * refactor: use named constant in tests for immortal refcounts Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> * docs: move comment about free threaded Python Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com> --------- Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -89,6 +89,8 @@ PYBIND11_MODULE(pybind11_tests, m) {
|
||||
#endif
|
||||
m.attr("cpp_std") = cpp_std();
|
||||
m.attr("PYBIND11_INTERNALS_ID") = PYBIND11_INTERNALS_ID;
|
||||
// Free threaded Python uses UINT32_MAX for immortal objects.
|
||||
m.attr("PYBIND11_REFCNT_IMMORTAL") = UINT32_MAX;
|
||||
m.attr("PYBIND11_SIMPLE_GIL_MANAGEMENT") =
|
||||
#if defined(PYBIND11_SIMPLE_GIL_MANAGEMENT)
|
||||
true;
|
||||
|
||||
Reference in New Issue
Block a user