Commit 8fb46d27 authored by Stefan Behnel's avatar Stefan Behnel

fix setting of directive 'set_initial_path' in pyximport after renaming it in the compiler

parent 00137712
...@@ -60,9 +60,9 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0, ...@@ -60,9 +60,9 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0,
if ext.name == '__init__' or ext.name.endswith('.__init__'): if ext.name == '__init__' or ext.name.endswith('.__init__'):
# package => provide __path__ early # package => provide __path__ early
if not hasattr(ext, 'cython_directives'): if not hasattr(ext, 'cython_directives'):
ext.cython_directives = {'set_initial_path_from_source' : True} ext.cython_directives = {'set_initial_path' : 'SOURCEFILE'}
elif 'set_initial_path_from_source' not in ext.cython_directives: elif 'set_initial_path' not in ext.cython_directives:
ext.cython_directives['set_initial_path_from_source'] = True ext.cython_directives['set_initial_path'] = 'SOURCEFILE'
if HAS_CYTHON and build_in_temp: if HAS_CYTHON and build_in_temp:
args.append("--pyrex-c-in-temp") args.append("--pyrex-c-in-temp")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment