From 692d79c30ecc0ee5f6599980ab4059c1bf845eed Mon Sep 17 00:00:00 2001 From: adustman Date: Sun, 11 Feb 2007 16:21:25 +0000 Subject: [PATCH] Fix for #1602592. Some Solaris compiler args could have percent signs, which would break distutils. --- MySQLdb/setup_posix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MySQLdb/setup_posix.py b/MySQLdb/setup_posix.py index b26e5c6..24c8a63 100644 --- a/MySQLdb/setup_posix.py +++ b/MySQLdb/setup_posix.py @@ -49,7 +49,7 @@ def get_config(): libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ] removable_compile_args = [ compiler_flag(f) for f in "ILl" ] - extra_compile_args = [ i for i in mysql_config("cflags") + extra_compile_args = [ i.replace("%", "%%") for i in mysql_config("cflags") if i[:2] not in removable_compile_args ] include_dirs = [ dequote(i[2:]) for i in mysql_config('include')