You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I'm willing to support this. As of right now, I have no means to test Python 2.5 unless I manually compile it myself because it's gone from the Debian (testing/unstable) repositories. It's also EOL'd.
OTOH, it's just a bunch of ifdefs, and right now I don't expect huge code changes so it should remain stable... Could you please try to pass the test suite with latest clone and if it does send a pull request with this change? :-)
add following code to pyuv.c, under "#include "pyuv.h"
//Must define Py_TYPE for Python 2.5 or older
ifndef Py_TYPE
define Py_TYPE(o) ((o)->ob_type)
endif
//Must define PyVarObject_HEAD_INIT for Python 2.5 or older
ifndef PyVarObject_HEAD_INIT
define PyVarObject_HEAD_INIT(type, size) \
endif
//Must define PyModule_AddIntMacro for Python 2.5 or older
ifndef PyModule_AddIntMacro
define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
endif
//Must define PyBytes_FromStringAndSize for Python 2.5 or older
ifndef PyBytes_FromStringAndSize
define PyBytes_FromStringAndSize PyString_FromStringAndSize
endif
//Must define PyBytes_FromString for Python 2.5 or older
ifndef PyBytes_FromString
define PyBytes_FromString PyString_FromString
endif
will make it support python25 or older
The text was updated successfully, but these errors were encountered: