Subtask of T140110 :
libmysqlclient-dev is included in the Python2 runtime image but not in the Python3 image:
- https://phabricator.wikimedia.org/diffusion/ODIT/browse/master/python2/base/Dockerfile.template
- https://phabricator.wikimedia.org/diffusion/ODIT/browse/master/python/base/Dockerfile.template
It would be great if that could be available in the Python3 image too.
Current workaround: use a pure python replacement: pip install pymysql and monkey-patch to emulate the official client:
import pymysql pymysql.install_as_MySQLdb()
but that probably comes at a performance cost (and it would be cleaner without that).