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
947eb6f0
Commit
947eb6f0
authored
Apr 25, 2008
by
Gary Furnish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-w
parent
acf0ef36
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Cython/Compiler/CmdLine.py
Cython/Compiler/CmdLine.py
+5
-0
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+4
-1
No files found.
Cython/Compiler/CmdLine.py
View file @
947eb6f0
...
@@ -27,6 +27,9 @@ Options:
...
@@ -27,6 +27,9 @@ Options:
performing any binary operations.
performing any binary operations.
--cleanup <level> Release interned objects on python exit, for memory debugging.
--cleanup <level> Release interned objects on python exit, for memory debugging.
Level indicates aggressiveness, default 0 releases nothing.
Level indicates aggressiveness, default 0 releases nothing.
-w, --working <directory> Sets the working directory for Cython (the directory modules
are searched from)
-D, --no-docstrings Remove docstrings.
-D, --no-docstrings Remove docstrings.
-a, --annotate Produce an colorized version of the source.
-a, --annotate Produce an colorized version of the source.
--convert-range Convert for loops using range() function to for...from loops.
--convert-range Convert for loops using range() function to for...from loops.
...
@@ -104,6 +107,8 @@ def parse_command_line(args):
...
@@ -104,6 +107,8 @@ def parse_command_line(args):
options
.
include_path
.
append
(
get_param
(
option
))
options
.
include_path
.
append
(
get_param
(
option
))
elif
option
==
"--include-dir"
:
elif
option
==
"--include-dir"
:
options
.
include_path
.
append
(
pop_arg
())
options
.
include_path
.
append
(
pop_arg
())
elif
option
in
(
"-w"
,
"--working"
):
options
.
working_path
=
pop_arg
()
elif
option
in
(
"-o"
,
"--output-file"
):
elif
option
in
(
"-o"
,
"--output-file"
):
options
.
output_file
=
pop_arg
()
options
.
output_file
=
pop_arg
()
elif
option
in
(
"-p"
,
"--embed-positions"
):
elif
option
in
(
"-p"
,
"--embed-positions"
):
...
...
Cython/Compiler/Main.py
View file @
947eb6f0
...
@@ -320,6 +320,8 @@ def main(command_line = 0):
...
@@ -320,6 +320,8 @@ def main(command_line = 0):
sources = args
sources = args
if options.show_version:
if options.show_version:
print >>sys.stderr, "Cython version %s" % Version.version
print >>sys.stderr, "Cython version %s" % Version.version
if options.working_path!="":
os.chdir(options.working_path)
context = Context(options.include_path)
context = Context(options.include_path)
for source in sources:
for source in sources:
try:
try:
...
@@ -347,7 +349,8 @@ default_options = dict(
...
@@ -347,7 +349,8 @@ default_options = dict(
cplus = 0,
cplus = 0,
output_file = None,
output_file = None,
generate_pxi = 0,
generate_pxi = 0,
transforms = Transform.TransformSet())
transforms = Transform.TransformSet(),
working_path = "")
if sys.platform == "mac":
if sys.platform == "mac":
from Cython.Mac.MacSystem import c_compile, c_link, CCompilerError
from Cython.Mac.MacSystem import c_compile, c_link, CCompilerError
...
...
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