Source: peewee
Version: 3.14.0+dfsg-1
Severity: important
I hope I'm wrong, but this doesn't look right to me:
L838 of the build log for 3.14.0+dfsg-1
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning:
Cython directive 'language_level' not set, using 2 for now (Py2). This will
change in a later release! File: /<<PKGBUILDDIR>>/playhouse/_sqlite_ext.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning:
Cython directive 'language_level' not set, using 2 for now (Py2). This will
change in a later release! File: /<<PKGBUILDDIR>>/playhouse/_sqlite_udf.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
I unsuccessfully attempted to enable a Cython extension for this in
setup.py. I also unsuccessfully attempted to enable Py3 using the "#
cython: language_level=3" header in playhouse/_sqlite_ext.pyx and
playhouse/_sqlite_udf.pyx.
In the second case I got a useful warning and backtrace, which makes
me suspect this might need work upstream.
[1/2] Cythonizing playhouse/_sqlite_ext.pyx
Error compiling Cython file:
------------------------------------------------------------
...
# Store a reference to the columns in the index info structure.
joinedCols = encode(','.join(columns))
idxStr = <char *>sqlite3_malloc((len(joinedCols) + 1) * sizeof(char))
memcpy(idxStr, <char *>joinedCols, len(joinedCols))
idxStr[len(joinedCols)] = '\x00'
^
------------------------------------------------------------
playhouse/_sqlite_ext.pyx:612:34: Unicode literals do not support coercion to C
types other than Py_UNICODE/Py_UCS4 (for characters) or Py_UNICODE* (for
strings).
Traceback (most recent call last):
File "setup.py", line 162, in <module>
_do_setup(extension_support, sqlite_extension_support)
File "setup.py", line 157, in _do_setup
ext_modules=cythonize(ext_modules))
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line
1097, in cythonize
cythonize_one(*args)
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line
1220, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: playhouse/_sqlite_ext.pyx
Regards,
Nicholas