performing any binary operations.
--cleanup <level> Release interned objects on python exit, for memory debugging.
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.
-a, --annotate Produce an colorized version of the source.
--convert-range Convert for loops using range() function to for...from loops.
options.include_path.append(get_param(option))
elif option == "--include-dir":
options.include_path.append(pop_arg())
+ elif option in ("-w", "--working"):
+ options.working_path = pop_arg()
elif option in ("-o", "--output-file"):
options.output_file = pop_arg()
elif option in ("-p", "--embed-positions"):
sources = args
if options.show_version:
print >>sys.stderr, "Cython version %s" % Version.version
+ if options.working_path!="":
+ os.chdir(options.working_path)
context = Context(options.include_path)
for source in sources:
try:
cplus = 0,
output_file = None,
generate_pxi = 0,
- transforms = Transform.TransformSet())
+ transforms = Transform.TransformSet(),
+ working_path = "")
if sys.platform == "mac":
from Cython.Mac.MacSystem import c_compile, c_link, CCompilerError