summaryrefslogtreecommitdiff
path: root/pyximport
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-08-15 12:47:44 +0200
committerStefan Behnel <stefan_ml@behnel.de>2012-08-15 12:47:44 +0200
commit8fb46d27a4a7433055acf86639f9835f64b4587e (patch)
tree3b75b1447ffe0e52a819cde21906b5a4f140bd49 /pyximport
parent001377128b9aa554672b88d06a3975dbdb70abe8 (diff)
downloadcython-8fb46d27a4a7433055acf86639f9835f64b4587e.tar.gz
fix setting of directive 'set_initial_path' in pyximport after renaming it in the compiler
Diffstat (limited to 'pyximport')
-rw-r--r--pyximport/pyxbuild.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyximport/pyxbuild.py b/pyximport/pyxbuild.py
index 498607e3f..0d805408e 100644
--- a/pyximport/pyxbuild.py
+++ b/pyximport/pyxbuild.py
@@ -60,9 +60,9 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0,
if ext.name == '__init__' or ext.name.endswith('.__init__'):
# package => provide __path__ early
if not hasattr(ext, 'cython_directives'):
- ext.cython_directives = {'set_initial_path_from_source' : True}
- elif 'set_initial_path_from_source' not in ext.cython_directives:
- ext.cython_directives['set_initial_path_from_source'] = True
+ ext.cython_directives = {'set_initial_path' : 'SOURCEFILE'}
+ elif 'set_initial_path' not in ext.cython_directives:
+ ext.cython_directives['set_initial_path'] = 'SOURCEFILE'
if HAS_CYTHON and build_in_temp:
args.append("--pyrex-c-in-temp")