Commit 29bc2bce authored by Stefan Behnel's avatar Stefan Behnel

Configure another Cython option in test runner from *inside* the shard runner...

Configure another Cython option in test runner from *inside* the shard runner to support non-forking setups (i.e. Windows).
parent eb471ff0
...@@ -1873,10 +1873,6 @@ def main(): ...@@ -1873,10 +1873,6 @@ def main():
if options.with_cython and sys.version_info[0] >= 3: if options.with_cython and sys.version_info[0] >= 3:
sys.path.insert(0, options.cython_dir) sys.path.insert(0, options.cython_dir)
if options.watermark:
import Cython.Compiler.Version
Cython.Compiler.Version.watermark = options.watermark
WITH_CYTHON = options.with_cython WITH_CYTHON = options.with_cython
coverage = None coverage = None
...@@ -1937,6 +1933,9 @@ def configure_cython(options): ...@@ -1937,6 +1933,9 @@ def configure_cython(options):
from Cython.Compiler import DebugFlags from Cython.Compiler import DebugFlags
DebugFlags.debug_temp_code_comments = 1 DebugFlags.debug_temp_code_comments = 1
pyrex_default_options['formal_grammar'] = options.use_formal_grammar pyrex_default_options['formal_grammar'] = options.use_formal_grammar
if options.watermark:
import Cython.Compiler.Version
Cython.Compiler.Version.watermark = options.watermark
def runtests_callback(args): def runtests_callback(args):
......
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