Commit 90c2566a authored by Stefan Behnel's avatar Stefan Behnel

provide -a/--annotate option for cythonize script

parent e51ee406
...@@ -145,6 +145,8 @@ def parse_args(args): ...@@ -145,6 +145,8 @@ def parse_args(args):
help='set a cythonize option') help='set a cythonize option')
parser.add_option('-3', dest='python3_mode', action='store_true', parser.add_option('-3', dest='python3_mode', action='store_true',
help='use Python 3 syntax mode by default') help='use Python 3 syntax mode by default')
parser.add_option('-a', '--annotate', dest='annotate', action='store_true',
help='generate annotated HTML page for source files')
parser.add_option('-x', '--exclude', metavar='PATTERN', dest='excludes', parser.add_option('-x', '--exclude', metavar='PATTERN', dest='excludes',
action='append', default=[], action='append', default=[],
...@@ -188,6 +190,9 @@ def main(args=None): ...@@ -188,6 +190,9 @@ def main(args=None):
Options.error_on_unknown_names = False Options.error_on_unknown_names = False
Options.error_on_uninitialized = False Options.error_on_uninitialized = False
if options.annotate:
Options.annotate = True
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