Mercurial > p > mysql-python > mysqldb-2
comparison setup_posix.py @ 8:fa8974a41c76 MySQLdb
New error handling code, plus some small fixes from 1.2
author | adustman |
---|---|
date | Sun, 11 Feb 2007 21:36:29 +0000 |
parents | b70cce9bd065 |
children | 0e37ee00beb7 |
comparison
equal
deleted
inserted
replaced
7:b1e508854b27 | 8:fa8974a41c76 |
---|---|
47 | 47 |
48 library_dirs = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("L")) ] | 48 library_dirs = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("L")) ] |
49 libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ] | 49 libraries = [ dequote(i[2:]) for i in libs if i.startswith(compiler_flag("l")) ] |
50 | 50 |
51 removable_compile_args = [ compiler_flag(f) for f in "ILl" ] | 51 removable_compile_args = [ compiler_flag(f) for f in "ILl" ] |
52 extra_compile_args = [ i for i in mysql_config("cflags") | 52 extra_compile_args = [ i.replace("%", "%%") for i in mysql_config("cflags") |
53 if i[:2] not in removable_compile_args ] | 53 if i[:2] not in removable_compile_args ] |
54 include_dirs = [ dequote(i[2:]) | 54 include_dirs = [ dequote(i[2:]) |
55 for i in mysql_config('include') | 55 for i in mysql_config('include') |
56 if i.startswith(compiler_flag('I')) ] | 56 if i.startswith(compiler_flag('I')) ] |
57 if not include_dirs: # fix for MySQL-3.23 | 57 if not include_dirs: # fix for MySQL-3.23 |