-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building on MSYS2 MINGW64 #1168
Comments
Having a bit of a stab in the dark with setup.py -import sys, os, re, shlex
+import sys, os, re, shlex, sysconfig
...
except ValueError:
pass
- if os.name == 'nt':
+ if 'mingw' in sysconfig.get_platform():
+ # Windows mingw
+ settings['extra_compile_args'].extend([
+ '-Wno-write-strings',
+ '-Wno-deprecated-declarations',
+ ])
+ settings['libraries'].append('odbc32')
+
+ elif os.name == 'nt':
settings['extra_compile_args'].extend([
'/Wall', I get a little further:
|
RoDuth
added a commit
to RoDuth/pyodbc
that referenced
this issue
Feb 20, 2023
mkleehammer/pyodbc/mkleehammer#1168
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't seem to get build to work on mingw (from looking at other issues seems cygwin is working), I note some old references to MING32 in the source (e.g. in
src/pyodbc.h
) but it seemssetup.py
does not account for mingw. Hence the below error (with windows compiler flags).The text was updated successfully, but these errors were encountered: