mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
continue to use PyEval_GetBuiltins for PyPy
This commit is contained in:
@@ -170,7 +170,7 @@ TEST_CASE("There can be only one interpreter") {
|
||||
|
||||
bool has_pybind11_internals_builtin() {
|
||||
py::dict state_dict;
|
||||
#if PY_VERSION_HEX < 0x03080000
|
||||
#if PY_VERSION_HEX < 0x03080000 || defined(PYPY_VERSION)
|
||||
state_dict = py::reinterpret_borrow<py::dict>(PyEval_GetBuiltins());
|
||||
#elif PY_VERSION_HEX < 0x03090000
|
||||
state_dict
|
||||
|
||||
Reference in New Issue
Block a user