[PyQt] sip-4.19.9.dev1805261119 python2 build failure
Rex Dieter
rdieter at math.unl.edu
Tue May 29 17:30:20 BST 2018
Rex Dieter wrote:
> Trying to build latest sip snapshot on fails building on/for python2
> (python3 is fine):
>
> siplib.c:6337:22: error: 'PyHeapTypeObject' {aka 'struct _heaptypeobject'}
> has no member named 'ht_qualname'; did you mean 'ht_name'?
> Py_CLEAR(ht->ht_qualname);
Figured that was python3 only code, adding a #ifdef (patch appended).
Now, hit 'make install' failure, seems to expect mk_distinfo.py to exist,
/usr/bin/python3 mk_distinfo.py /usr/lib64/python3.6/site-
packages/sip-4.19.9.dev1805261119.dist-info installed.txt
/usr/bin/python3: can't open file 'mk_distinfo.py': [Errno 2] No such file
or directory
-------------------------------
--- sip-4.19.9.dev1805261119/siplib/siplib.c.in.rex 2018-05-28
20:30:19.000000000 -0500
+++ sip-4.19.9.dev1805261119/siplib/siplib.c.in 2018-05-29
11:23:00.868228044 -0500
@@ -6323,6 +6323,7 @@ static PyObject *createContainerType(sip
if (py_type == NULL)
goto relargs;
+#if PY_VERSION_HEX >= 0x03030000
/* Fix __qualname__ if there is a scope. */
if (scope_td != NULL)
{
@@ -6337,6 +6338,7 @@ static PyObject *createContainerType(sip
Py_CLEAR(ht->ht_qualname);
ht->ht_qualname = qualname;
}
+#endif
/* Add the type to the "parent" dictionary. */
if (PyDict_SetItem(scope_dict, name, py_type) < 0)
More information about the PyQt
mailing list