setup.py shouldn't have requires

Bug #1032155 reported by Ionuț Arțăriși
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Invalid
Undecided
Unassigned

Bug Description

Hi,

We're currently getting the following error from glanceclient on SUSE:

# glance help
Traceback (most recent call last):
  File "/usr/bin/glance", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 2739, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 588, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: python-keystoneclient>=0.1,<0.2

I noticed that python-glanceclient's setup.py file explicitly sets the version of install_requires. For all the other components, the requirements aren't enforced in setup.py and I don't think glanceclient should be a special case. Specifying the unversioned requirements or simply leaving them out of the setup.py is a better solution. Pip can still find them in the pip-requires file of-course and that's what most scripts use anyway.

This isn't good for downstream distributions (such as us) who do their own packaging and take care of the dependencies themselves.

Revision history for this message
Brian Waldon (bcwaldon) wrote :

If I 'pip install python-glanceclient' I expect it to work - that means all required dependencies are installed. I'm not setting requirements to specific version for fun here, there's always a reason.

It also appears that you're mixing packages and pip for installing software. That will definitely cause problems for you.

Changed in python-glanceclient:
status: New → Incomplete
Brian Waldon (bcwaldon)
Changed in python-glanceclient:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.