summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-10-11 13:19:00 +0200
committerStefan Behnel <stefan_ml@behnel.de>2014-10-11 13:19:00 +0200
commitc23f143a9aa4245c625d6b164ffd1e469991b4b4 (patch)
treec55c61de175e04ed14fc1e930bbb8d43ff0413c7
parent6b2b933c1c0c97fc42f106ce7d4132ea102066f6 (diff)
downloadcython-c23f143a9aa4245c625d6b164ffd1e469991b4b4.tar.gz
provide -a/--annotate option for cythonize script
--HG-- extra : transplant_source : %279%83%AB%FF%04%F0%F6%12%BB%D1P%19%A9%B9%F2%C6%C23%B6
-rw-r--r--Cython/Build/Cythonize.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cython/Build/Cythonize.py b/Cython/Build/Cythonize.py
index 5d16390f1..7be59790a 100644
--- a/Cython/Build/Cythonize.py
+++ b/Cython/Build/Cythonize.py
@@ -145,6 +145,8 @@ def parse_args(args):
help='set a cythonize option')
parser.add_option('-3', dest='python3_mode', action='store_true',
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',
action='append', default=[],
@@ -188,6 +190,9 @@ def main(args=None):
Options.error_on_unknown_names = False
Options.error_on_uninitialized = False
+ if options.annotate:
+ Options.annotate = True
+
for path in paths:
cython_compile(path, options)