Issue 218: current tip does not honor build_ext -I -L flags
Status:  Complete
Owner: ----
Closed:  Nov 2011
Reported by zzz...@gmail.com, Oct 15, 2011
To build pyodbc against a custom odbc library, you must either do:

    export CFLAGS='-I/path/to/custom/include -L/path/to/custom/lib'

or use build_ext flags:

    python setup.py build_ext -I/path/to/custom/include -L/path/to/custom/lib

as of the latest tip, the latter method is impossible because setup.py is calling a "sub" setup for the "pyodbcconf" utility, which it builds unconditionally against the wrong libraries.   I'd reconsider a build arch like this as it's highly complicated for the build to depend on another native library build *within* it just to configure.
Oct 16, 2011
Project Member #1 mkleehammer
Good point.  However, I'd like to keep pyodbcconf so I can use the size of wchar, sqlwchar, and Py_UNICODE with the preprocessor.  There are 3 different unicode types now and keeping them straight is a pain.

I will have to make sure that all parameters / configurations are passed to it.

Status: Investigating
Nov 2, 2011
Project Member #2 mkleehammer
Removed pyodbcconf in 3.0.1
Status: Complete