Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
90c2566a
Commit
90c2566a
authored
Oct 11, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide -a/--annotate option for cythonize script
parent
e51ee406
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Build/Cythonize.py
Cython/Build/Cythonize.py
+5
-0
No files found.
Cython/Build/Cythonize.py
View file @
90c2566a
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment