Created
April 22, 2014 23:38
-
-
Save sptramer/11198058 to your computer and use it in GitHub Desktop.
pyodbc setup.py quick patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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