fix directive parsing in cythonize script
authorStefan Behnel <stefan_ml@behnel.de>
Tue, 20 Aug 2013 07:14:54 +0000 (09:14 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Tue, 20 Aug 2013 07:14:54 +0000 (09:14 +0200)
Cython/Build/Cythonize.py

index da53a60..fd99009 100644 (file)
@@ -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',