Skip to content

Instantly share code, notes, and snippets.

@sptramer
Created April 22, 2014 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sptramer/11198058 to your computer and use it in GitHub Desktop.
Save sptramer/11198058 to your computer and use it in GitHub Desktop.
pyodbc setup.py quick patch
--- setup.py 2014-04-22 16:32:29.000000000 -0700
+++ setup.py 2014-04-22 16:35:07.000000000 -0700
@@ -145,16 +145,13 @@
elif sys.platform == 'darwin':
# OS/X now ships with iODBC.
- settings['libraries'].append('iodbc')
+ settings['libraries'].append('odbc')
# Apple has decided they won't maintain the iODBC system in OS/X and has added deprecation warnings in 10.8.
# For now target 10.7 to eliminate the warnings.
# Python functions take a lot of 'char *' that really should be const. gcc complains about this *a lot*
settings['extra_compile_args'] = ['-Wno-write-strings', '-Wno-deprecated-declarations']
-
- settings['define_macros'].append( ('MAC_OS_X_VERSION_10_7',) )
-
else:
# Other posix-like: Linux, Solaris, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment