Commit 06c2b11d authored by Stefan Behnel's avatar Stefan Behnel

add --quiet and --force options to cythonize script

parent a6bb9c17
...@@ -88,6 +88,8 @@ def cython_compile(path_pattern, options): ...@@ -88,6 +88,8 @@ def cython_compile(path_pattern, options):
exclude_failures=options.keep_going, exclude_failures=options.keep_going,
exclude=options.excludes, exclude=options.excludes,
compiler_directives=options.directives, compiler_directives=options.directives,
force=options.force,
quiet=options.quiet,
**options.options) **options.options)
finally: finally:
if base_dir: if base_dir:
...@@ -150,6 +152,10 @@ def parse_args(args): ...@@ -150,6 +152,10 @@ def parse_args(args):
type=int, default=parallel_compiles, type=int, default=parallel_compiles,
help=('run builds in N parallel jobs (default: %d)' % help=('run builds in N parallel jobs (default: %d)' %
parallel_compiles or 1)) parallel_compiles or 1))
parser.add_option('-f', '--force', dest='force', action='store_true',
help='force recompilation')
parser.add_option('-q', '--quiet', dest='quiet', action='store_true',
help='be less verbose during compilation')
parser.add_option('--lenient', dest='lenient', action='store_true', parser.add_option('--lenient', dest='lenient', action='store_true',
help='increase Python compatibility by ignoring some compile time errors') help='increase Python compatibility by ignoring some compile time errors')
......
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