mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Fix for #1602592. Some Solaris compiler args could have percent signs,
which would break distutils.
This commit is contained in:
@ -49,7 +49,7 @@ def get_config():
|
|||||||
libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ]
|
libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ]
|
||||||
|
|
||||||
removable_compile_args = [ compiler_flag(f) for f in "ILl" ]
|
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 ]
|
if i[:2] not in removable_compile_args ]
|
||||||
include_dirs = [ dequote(i[2:])
|
include_dirs = [ dequote(i[2:])
|
||||||
for i in mysql_config('include')
|
for i in mysql_config('include')
|
||||||
|
Reference in New Issue
Block a user