Verified Commit 65ed89c0 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

types: fix registration

parent d1b68776
Pipeline #15437 passed with stage
in 9 minutes and 45 seconds
......@@ -54,8 +54,8 @@ namespace eigenpy
Py_INCREF(tp_bases_extended.ptr());
py_type_ptr->tp_bases = tp_bases_extended.ptr();
// py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild
py_type_ptr->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE;
py_type_ptr->tp_flags &= ~Py_TPFLAGS_READY; // to force the rebuild
// py_type_ptr->tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE;
if(PyType_Ready(py_type_ptr) < 0) // Force rebuilding of the __bases__ and mro
{
throw std::invalid_argument("PyType_Ready fails to initialize input type.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment