From: Stefan Behnel Date: Tue, 20 Aug 2013 07:14:54 +0000 (+0200) Subject: fix directive parsing in cythonize script X-Git-Tag: 0.20b1~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b20c8f5cba585cbb647b16abc7512a5aeaed3f8c;p=platform%2Fupstream%2Fpython-cython.git fix directive parsing in cythonize script --- diff --git a/Cython/Build/Cythonize.py b/Cython/Build/Cythonize.py index da53a60..fd99009 100644 --- a/Cython/Build/Cythonize.py +++ b/Cython/Build/Cythonize.py @@ -132,10 +132,10 @@ def parse_args(args): parser = OptionParser(usage='%prog [options] [sources and packages]+') parser.add_option('-X', '--directive', metavar='NAME=VALUE,...', dest='directives', - action='callback', callback=parse_directives, default={}, + type=str, action='callback', callback=parse_directives, default={}, help='set a compiler directive') parser.add_option('-s', '--option', metavar='NAME=VALUE', dest='options', - action='callback', callback=parse_options, default={}, + type=str, action='callback', callback=parse_options, default={}, help='set a cythonize option') parser.add_option('-x', '--exclude', metavar='PATTERN', dest='excludes',