I am contributing to an open source project and I am currently migrating it from python2 to python3 and I have a list of required_packages which includes: python-mysqldb and python-dev. Because of the migration, I need those to change to python3-mysqldb and python3-dev.
However, that will break the software for users who are still using python2. I was wondering if perhaps there is a smart way for the package manager (e.g. apt) to figure out if it needs to install the python3 or python2 version of python-mysqldb and python-dev. For example, by checking the version of /usr/bin/python or by reading an env variable. That way I could leave the name of the packages untouched and still be compatible for both python2 and python3