Created attachment 330682 [details] mysql-connector-python-1.0.7.ebuild seem dev-python/mysql-python is unmantained or uninterested in python-3. Oracle provide a connector under the GPL2 license which is pure python. ChangeLog claims compatibility with python 3.3 and error messages imported from mysql-5.6 Would be nice to have it in portage, attached you'll find an ebuild. An alternative also pure python could be PyMySQL https://github.com/petehunt/PyMySQL/commits/master # qlist mysql-connector-python /usr/lib64/python2.7/site-packages/mysql_connector_python-1.0.7-py2.7.egg-info /usr/lib64/python2.7/site-packages/mysql/connector/conversion.py /usr/lib64/python2.7/site-packages/mysql/connector/cursor.py /usr/lib64/python2.7/site-packages/mysql/connector/__init__.py /usr/lib64/python2.7/site-packages/mysql/connector/version.py /usr/lib64/python2.7/site-packages/mysql/connector/errors.py /usr/lib64/python2.7/site-packages/mysql/connector/network.py /usr/lib64/python2.7/site-packages/mysql/connector/locales/__init__.py /usr/lib64/python2.7/site-packages/mysql/connector/locales/eng/__init__.py /usr/lib64/python2.7/site-packages/mysql/connector/locales/eng/client_error.py /usr/lib64/python2.7/site-packages/mysql/connector/dbapi.py /usr/lib64/python2.7/site-packages/mysql/connector/connection.py /usr/lib64/python2.7/site-packages/mysql/connector/constants.py /usr/lib64/python2.7/site-packages/mysql/connector/errorcode.py /usr/lib64/python2.7/site-packages/mysql/connector/utils.py /usr/lib64/python2.7/site-packages/mysql/connector/protocol.py /usr/lib64/python2.7/site-packages/mysql/__init__.py /usr/lib64/python3.2/site-packages/mysql_connector_python-1.0.7-py3.2.egg-info /usr/lib64/python3.2/site-packages/mysql/connector/conversion.py /usr/lib64/python3.2/site-packages/mysql/connector/cursor.py /usr/lib64/python3.2/site-packages/mysql/connector/__init__.py /usr/lib64/python3.2/site-packages/mysql/connector/version.py /usr/lib64/python3.2/site-packages/mysql/connector/errors.py /usr/lib64/python3.2/site-packages/mysql/connector/network.py /usr/lib64/python3.2/site-packages/mysql/connector/locales/__init__.py /usr/lib64/python3.2/site-packages/mysql/connector/locales/eng/__init__.py /usr/lib64/python3.2/site-packages/mysql/connector/locales/eng/client_error.py /usr/lib64/python3.2/site-packages/mysql/connector/dbapi.py /usr/lib64/python3.2/site-packages/mysql/connector/connection.py /usr/lib64/python3.2/site-packages/mysql/connector/constants.py /usr/lib64/python3.2/site-packages/mysql/connector/errorcode.py /usr/lib64/python3.2/site-packages/mysql/connector/utils.py /usr/lib64/python3.2/site-packages/mysql/connector/protocol.py /usr/lib64/python3.2/site-packages/mysql/__init__.py /usr/share/doc/mysql-connector-python-1.0.7/README.bz2 /usr/share/doc/mysql-connector-python-1.0.7/ChangeLog.bz2 /usr/share/doc/mysql-connector-python-1.0.7/COPYING.bz2
This needs a couple, well more than a couple, of adjustments to become viable; "Oracle provide a connector under the GPL2 license" 1) Yes this looks in order. 2) The title of this bug cites dev-python/mysql-connector. Then the ebuild is entitled mysql-connector-python, which contradict one another. The acquisition of the tarball I finally managed after doing some juggling by resolving this manually, seeing that it was possible from the build displayed. 3) testuser@archtester ~/improvise/dev-python/mysql-connector $ ls /mnt/gen2/TmpDir/portage/dev-python/mysql-connector-python-1.0.8/work/mysql-connector-python-1.0.8/ -- yileds -- build-2.7 ChangeLog docs PKG-INFO python3 setup.cfg support version.py build-3.2 COPYING metasetupinfo.py python2 README setup.py unittests.py So we have python2 and 3 folders ready to fire, looks good. 4) You have a docs folder, but no docs built or installed in the ebuild. 5) You have tests testuser@archtester ~/improvise/dev-python/mysql-connector $ ls /mnt/gen2/TmpDir/portage/dev-python/mysql-connector-python-1.0.8/work/mysql-connector-python-1.0.8/python2/tests __init__.py test_connection.py test_cursor.py test_examples.py test_network.py test_utils.py mysqld.py test_constants.py test_errorcode.py test_locales.py test_pep249.py test_bugs.py test_conversion.py test_errors.py test_mysql_datatypes.py test_protocol.py However it takes more than a simple addition of DISTUTILS_SRC_TEST=nosetests to see the test suite run and pass under ALL scenarios. 6) The folder in the source "support" opens another list of tasks and possibilitites 7) testuser@archtester ~/improvise/dev-python/mysql-connector $ ls /mnt/gen2/TmpDir/portage/dev-python/mysql-connector-python-1.0.8/image/usr/lib64 -- yields -- /python2.7/site-packages/mysql connector __init__.py This requires one more step to set right. 8) KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" ditto. This was filed 2012-11-26 and as you can see there has been a next version released which I have acquired in executing the above. In short, that's more than a couple. You have the options of pursuing the prep of the ebuild via sunrise, or more directly, via irc in gentoo-python, where you can seek support.
dev-python/mysql-connector-python has been added to the tree