New issue 2663: regex package on python 3 uses PyUnicode_Substring and
PyLong_FromUnicodeObject
https://bitbucket.org/pypy/pypy/issues/2663/regex-package-on-python-3-uses
Nathaniel Smith:
Trying to install the `regex` package on latest PyPy3 nightly gives:
```
cc -pthread -DNDEBUG -O2 -fPIC
-I/home/njs/pypy/pypy-c-jit-92443-f368583e1d76-linux64/include -c
regex_3/regex/_regex.c -o build/temp.linux-x86_64-3.5/regex_3/regex/_regex.o
regex_3/regex/_regex.c: In function ‘unicode_slice’:
regex_3/regex/_regex.c:17871:12: warning: implicit declaration of function
‘PyUnicode_Substring’; did you mean ‘_PyUnicode_AsString’?
[-Wimplicit-function-declaration]
return PyUnicode_Substring(string, start, end);
^~~~~~~~~~~~~~~~~~~
_PyUnicode_AsString
regex_3/regex/_regex.c:17871:12: warning: return makes pointer from integer
without a cast [-Wint-conversion]
return PyUnicode_Substring(string, start, end);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
regex_3/regex/_regex.c: In function ‘index_to_integer’:
regex_3/regex/_regex.c:20194:19: warning: implicit declaration of function
‘PyLong_FromUnicodeObject’; did you mean ‘PyLong_FromUnicode’?
[-Wimplicit-function-declaration]
int_obj = PyLong_FromUnicodeObject(item, 0);
^~~~~~~~~~~~~~~~~~~~~~~~
PyLong_FromUnicode
regex_3/regex/_regex.c:20194:17: warning: assignment makes pointer from integer
without a cast [-Wint-conversion]
int_obj = PyLong_FromUnicodeObject(item, 0);
^
```
It looks like these are missing cpyext functions.
See also:
https://bitbucket.org/mrabarnett/mrab-regex/issues/253/run-into-error-under-pypy-580#comment-40045097
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue