[Python-modules-team] Bug#831836: python-django: Add pymysql support

Raphael Hertzog hertzog at debian.org
Wed Jul 20 21:27:28 UTC 2016


On Wed, 20 Jul 2016, Corey Bryant wrote:
> This was originally driven as a result of upstream OpenStack's decision to
> move to PyMySQL [1].  Only one client is typically supported in Ubuntu
> main, so we decided to go with python-pymysql.  As a result, any Ubuntu
> main packages that had a dependency on python-mysqldb had to be moved to
> python-pymysql, and python-django was one of those.

Thanks for the explanation.

Strictly speaking, the package has no "dependency" on python-mysqldb, only
a "suggests". It can be used with other database drivers as well.

While I understand your reasoning, I believe that this change must happen
at the upstream level first. Debian has no similar restriction and I thus
don't see the need to diverge from upstream on this specific point.

Jeremy, alternatively, you could possibly create a
python-pymsql-as-mysqldb that would "Provide: python-mysqldb" and would
contain the corresponding Python package but built on top of
python-pymysql (and would conflict with python-mysqldb). That might be
something upstreamable in pymysql or in the Debian package of
python-pymysql.

I see that many Openstack packages in Debian depend on both
python-mysqldb and python-pymysql. I guess in Ubuntu they depend only in
python-pymysql? Is the difference explained by this Django patch only?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/



More information about the Python-modules-team mailing list