mirror of https://github.com/kivy/kivy.git
try to fix the error from PPA, seem that c_string_encoding is a new options in the unreleased Cython 0.19, that need to be set when casting from char* to str
This commit is contained in:
parent
bfb036b9c3
commit
1ae8a603b8
1
setup.py
1
setup.py
|
@ -160,6 +160,7 @@ class CythonExtension(Extension):
|
|||
def __init__(self, *args, **kwargs):
|
||||
Extension.__init__(self, *args, **kwargs)
|
||||
self.cython_directives = {
|
||||
'c_string_encoding': 'utf-8',
|
||||
'profile': 'USE_PROFILE' in environ,
|
||||
'embedsignature': 'USE_EMBEDSIGNATURE' in environ}
|
||||
# XXX with pip, setuptools is imported before distutils, and change
|
||||
|
|
Loading…
Reference in New Issue