Skip to content

Commit 9f8097d

Browse files
committed
Exclude mysqlclient 2.0.0 because it crashes.
See PyMySQL/mysqlclient#435
1 parent 767f496 commit 9f8097d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,14 @@ def read_file(*path):
180180
# compile on windows for Python 2.7 (it doesn't support the
181181
# old Visual C) and is hard to compile for anything newer; it sometimes
182182
# has wheels but not always, so don't suggest it.
183+
#
184+
# Note that mysqlclient 2.0.0 has a crashing bug:
185+
# https://github.com/PyMySQL/mysqlclient-python/issues/435
183186

184187

185188
# pylint:disable=line-too-long
186189
'mysql:platform_python_implementation=="CPython" and (sys_platform != "win32")': [
187-
'mysqlclient >= 1.4',
190+
'mysqlclient >= 1.4, != 2.0.0',
188191
],
189192
'mysql:platform_python_implementation=="PyPy" or (sys_platform == "win32")': [
190193
'PyMySQL>=0.6.6',
@@ -236,7 +239,7 @@ def read_file(*path):
236239
'PyMySQL >= 0.6.6; python_version == "3.6" or platform_python_implementation == "PyPy" or sys_platform == "win32"',
237240
# mysqlclient (binary) on all CPythons. It's the default,
238241
# except on old Windows. We get coverage from Travis.
239-
'mysqlclient >= 1.4;platform_python_implementation=="CPython" and (sys_platform != "win32")',
242+
'mysqlclient >= 1.4,!=2.0.0;platform_python_implementation=="CPython" and (sys_platform != "win32")',
240243
# mysql-connector-python on Python 3.7 for coverage on Travis and ensuring it works
241244
# on Windows, and PyPy for testing there, since it's one of two pure-python versions.
242245
'mysql-connector-python >= 8.0.16; python_version == "3.7" or platform_python_implementation == "PyPy"',

0 commit comments

Comments
 (0)