Fails to build sip with PyPy

Phil Thompson phil at riverbankcomputing.com
Sat Jun 25 15:37:18 BST 2022


On 23/06/2022 18:51, مهدي شينون wrote:
> Hi
> 
> 
> I tried to build install/build sip with PyPy 3.9-7.3.9 but it fails
> with both GCC and MSVC
> 
> 
> MSVC:
> 
> code_generator\py2c.c(352): error C2065: 'Py_None': undeclared 
> identifier
> code_generator\py2c.c(352): warning C4047: '==': 'PyObject *' differs
> in levels of indirection from 'int'
> code_generator\py2c.c(418): warning C4244: '=': conversion from
> 'Py_ssize_t' to 'int', possible loss of data
> code_generator\py2c.c(549): error C2065: 'Py_None': undeclared 
> identifier
> code_generator\py2c.c(549): warning C4047: '==': 'PyObject *' differs
> in levels of indirection from 'int'
> code_generator\py2c.c(626): error C2065: 'Py_None': undeclared 
> identifier
> code_generator\py2c.c(626): warning C4047: '==': 'PyObject *' differs
> in levels of indirection from 'int'
> code_generator\py2c.c(901): error C2065: 'Py_None': undeclared 
> identifier
> code_generator\py2c.c(901): warning C4047: '!=': 'PyObject *' differs
> in levels of indirection from 'int'
> code_generator\py2c.c(921): error C2065: 'Py_None': undeclared 
> identifier
> ...
> 
> 
> GCC:
> 
> code_generator/py2c.c:352:16: error: ‘Py_None’ undeclared (first use
> in this function)
> 352 | if (obj == Py_None)
> | ^~~~~~~
> code_generator/py2c.c:352:16: note: each undeclared identifier is
> reported only once for each function it appears in
> code_generator/py2c.c: In function ‘cachedname’:
> code_generator/py2c.c:549:16: error: ‘Py_None’ undeclared (first use
> in this function)
> 549 | if (obj == Py_None)
> | ^~~~~~~
> code_generator/py2c.c: In function ‘class’:
> code_generator/py2c.c:626:16: error: ‘Py_None’ undeclared (first use
> in this function)
> 626 | if (obj == Py_None)
> | ^~~~~~~
> ....

Building the code generator against PyPy isn't supported but I'm happy 
to consider patches.

Phil


More information about the PyQt mailing list