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:
Mathieu Virbel 2013-03-03 05:01:13 +01:00
parent bfb036b9c3
commit 1ae8a603b8
1 changed files with 1 additions and 0 deletions

View File

@ -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