From b20c8f5cba585cbb647b16abc7512a5aeaed3f8c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 20 Aug 2013 09:14:54 +0200 Subject: [PATCH] fix directive parsing in cythonize script --- Cython/Build/Cythonize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.7.4