Skip to content

Commit fa8ca97

Browse files
committed
Fix building on Windows for latest MySQL Connector C 6.1
1 parent d34fac6 commit fa8ca97

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

Diff for: _mysql.c

-4
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ PERFORMANCE OF THIS SOFTWARE.
3838
#endif
3939
#include "pymemcompat.h"
4040
#include "structmember.h"
41-
#if defined(MS_WINDOWS)
42-
#include <config-win.h>
43-
#else
4441
#include "my_config.h"
45-
#endif
4642
#include "mysql.h"
4743
#include "mysqld_error.h"
4844
#include "errmsg.h"

Diff for: setup_windows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_config():
1414
else:
1515
client = "mysqlclient"
1616

17-
library_dirs = [ os.path.join(connector, r'lib\opt') ]
17+
library_dirs = [ os.path.join(connector, r'lib\vs11') ]
1818
libraries = [ 'kernel32', 'advapi32', 'wsock32', client ]
1919
include_dirs = [ os.path.join(connector, r'include') ]
2020
extra_compile_args = [ '/Zl' ]

Diff for: site.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ static = False
1414

1515
# http://stackoverflow.com/questions/1972259/mysql-python-install-problem-using-virtualenv-windows-pip
1616
# Windows connector libs for MySQL. You need a 32-bit connector for your 32-bit Python build.
17-
connector = C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2
17+
connector = C:\Program Files (x86)\MySQL\MySQL Connector C 6.1

0 commit comments

Comments
 (0)