not installable with buildout

Bug #942369 reported by Domen Kožar on 2012-02-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Connector/Python
Incomplete
Wishlist
Unassigned

Bug Description

It will not install, because it is badly named.

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 scripts.
Error: There is a version conflict.
We already have: mysql-connector-python 0.3.2-devel

I just tried it with Python v2.7 using a new virtualenv: it downloads and installs correctly.
Anymore details you can share to reproduce?

shell> pip install mysql-connector
Downloading/unpacking mysql-connector
  Downloading mysql-connector-python-0.3.2-devel.tar.gz (129Kb): 129Kb downloaded
  Running setup.py egg_info for package mysql-connector

Installing collected packages: mysql-connector
  Running setup.py install for mysql-connector

Successfully installed mysql-connector
Cleaning up...

Changed in myconnpy:
status: New → Incomplete
Domen Kožar (ielectric+) wrote :

Foolish of me taking for granted everyone knows buildout. Steps to reproduce:

echo "
[buildout]
parts = install
eggs-directory = eggs

[install]
recipe = zc.recipe.egg
eggs =
    mysql-connector
" > buildout.cfg
wget http://python-distribute.org/bootstrap.py
python bootstrap.py
bin/buildout

Fix is pretty easy. Make sure package is correctly named and has sane version in setup.py, currently that would be:

..
name = mysql-connector,
version = '0.3.2',
...

then upload package to pypi (this will strip "dev" from version, create source tarball, register package on pypi and upload it there):

python setup.py egg_info -RDb "" sdist register upload

Thanks for hitting me with the clue-bat, I've checkout buildout.

The problem is the dash in the name, correct?
Just removing 'devel' is not good: it's important it's in the version. However, it was a poor choose using a dash. It would have been better to name it 0.3.2devel, or even 0.3.2alpha.

I do not want to upload files to pypi, but point to the Launchpad download site for now. Fixing this would mean we have to remove the dash from the name and such.. I'll see we don't make the same mistake in next releases.

This bug was moved to http://bugs.mysql.com/64542

Please add comments or subscribe using the above URL.

Changed in myconnpy:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers