Skip to content

Commit

Permalink
Fix building on Windows for latest MySQL Connector C 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
davispuh committed Jul 17, 2014
1 parent d34fac6 commit fa8ca97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions _mysql.c
Expand Up @@ -38,11 +38,7 @@ PERFORMANCE OF THIS SOFTWARE.
#endif
#include "pymemcompat.h"
#include "structmember.h"
#if defined(MS_WINDOWS)
#include <config-win.h>
#else
#include "my_config.h"
#endif
#include "mysql.h"
#include "mysqld_error.h"
#include "errmsg.h"
Expand Down
2 changes: 1 addition & 1 deletion setup_windows.py
Expand Up @@ -14,7 +14,7 @@ def get_config():
else:
client = "mysqlclient"

library_dirs = [ os.path.join(connector, r'lib\opt') ]
library_dirs = [ os.path.join(connector, r'lib\vs11') ]
libraries = [ 'kernel32', 'advapi32', 'wsock32', client ]
include_dirs = [ os.path.join(connector, r'include') ]
extra_compile_args = [ '/Zl' ]
Expand Down
2 changes: 1 addition & 1 deletion site.cfg
Expand Up @@ -14,4 +14,4 @@ static = False

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

0 comments on commit fa8ca97

Please sign in to comment.