Bug #64542 Not installable with buildout
Submitted: 5 Mar 2012 9:12 Modified: 2 Sep 2013 11:01
Reporter: Geert Vanderkelen Email Updates:
Status: Can't repeat Impact on me:
None 
Category:Connector / Python Severity:S4 (Feature request)
Version:0.3.2 OS:Any
Assigned to: Geert Vanderkelen CPU Architecture:Any

[5 Mar 2012 9:12] Geert Vanderkelen
Description:
It is not possible to install MySQL Connector/Python using buildout (buildout.org). The problem is the version, probably the dash.

How to repeat:
shell> mkdir buildouttest; cd buildouttest
shell> virtualenv ENV
shell> ENV/bin/activate

craete a file buildout.cfg with following:

--8<--
[buildout]
parts = install
eggs-directory = eggs

[install]
recipe = zc.recipe.egg
eggs =
    mysql-connector
-->8--

shell> wget http://python-distribute.org/bootstrap.py
shell> python bootstrap.py
shell> bin/buildout

Result is:

Installing install.
Getting distribution for 'mysql-connector'.
zip_safe flag not set; analyzing archive contents...
Installing mysql-connector python-0.3.2-devel
Caused installation of a distribution:
mysql-connector-python 0.3.2-devel
with a different project name.
Installing mysql-connector python-0.3.2-devel
Caused installation of a distribution:
mysql-connector-python 0.3.2-devel
with a different version.
Got None.
Getting distribution for 'mysql-connector'.
zip_safe flag not set; analyzing archive contents...
Installing mysql-connector python-0.3.2-devel
Caused installation of a distribution:
mysql-connector-python 0.3.2-devel
with a different project name.
Installing mysql-connector python-0.3.2-devel
Caused installation of a distribution:
mysql-connector-python 0.3.2-devel
with a different version.
Got None.
While:
  Installing install.
Error: There is a version conflict.
We already have: mysql-connector-python 0.3.2-devel

Suggested fix:
We need to remove the dash from the version, have something like '0.3.2alpha'. Just remove 'devel' is not good enough: it needs to be clear that this is a development release.
[7 Mar 2012 18:28] Domen Kožar
The main issue currently is that tarball name-version is different from the one specified in setup.py for distutils. Dashes in version/name are not an issue at all.

Tarball is formatted in form "%s-%s.tar.gz" %(name,version) and should not be renamed after running "python setup.py sdist"

What is the motivation behind using "devel" in version tag when releasing new version? 

I would like to understand why won't you upload tarballs to pypi? It's one command per release and if you want, I can take over that burdon for each release, if you give me maintainer rights.

Cheers, Domen
[11 Mar 2012 11:14] Domen Kožar
I found a bug in metasetupinfo.py, line:

keywords = "mysql db",

should be:

keywords = "mysql db"
[2 Sep 2013 11:01] Geert Vanderkelen
Version numbers have no dashes any longer and buildout works. If anything is still broken, please report a new bug.