Skip to content

Commit aa178bf

Browse files
committed
Assume unixODBC on OS X
1 parent 04dee48 commit aa178bf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ tmp
99
TAGS
1010
pyodbc.egg-info
1111
pyodbc.conf
12+
/venv*

‎setup.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,9 @@ def get_compiler_settings(version_str):
159159
settings['libraries'].append('odbc32')
160160

161161
elif sys.platform == 'darwin':
162-
# OS/X now ships with iODBC.
163-
settings['libraries'].append('iodbc')
162+
# The latest versions of OS X no longer ship with iodbc. Assume
163+
# unixODBC for now.
164+
settings['libraries'].append('odbc')
164165

165166
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot*
166167
settings['extra_compile_args'].extend([

0 commit comments

Comments
 (0)