Commit 445b0b5d authored by Stefan Behnel's avatar Stefan Behnel

Move the setting of the new cythonize option "--no-docstrings" to a better...

Move the setting of the new cythonize option "--no-docstrings" to a better place where it does not interfere with using `Cythonize` as a module.
parent 0f3f8bb0
...@@ -94,9 +94,6 @@ def cython_compile(path_pattern, options): ...@@ -94,9 +94,6 @@ def cython_compile(path_pattern, options):
# assume it's a file(-like thing) # assume it's a file(-like thing)
paths = [path] paths = [path]
if options.no_docstrings:
Options.docstrings = False
ext_modules = cythonize( ext_modules = cythonize(
paths, paths,
nthreads=options.parallel, nthreads=options.parallel,
...@@ -224,6 +221,9 @@ def main(args=None): ...@@ -224,6 +221,9 @@ def main(args=None):
if options.annotate: if options.annotate:
Options.annotate = True Options.annotate = True
if options.no_docstrings:
Options.docstrings = False
for path in paths: for path in paths:
cython_compile(path, options) cython_compile(path, options)
......
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