Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472442 - dev-python/flake8-2.0 should depend on >=dev-python/mccabe-0.2
Summary: dev-python/flake8-2.0 should depend on >=dev-python/mccabe-0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-05 21:07 UTC by Lukas Polacek
Modified: 2013-06-07 10:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Polacek 2013-06-05 21:07:32 UTC
I installed flake8, but it crashes, because mccabe is missing. After installing mccabe everything works as expected.

Reproducible: Always

Steps to Reproduce:
1. Install flake8
2. Run flake8
Actual Results:  
Traceback (most recent call last):
  File "/usr/bin/flake8-python2.7", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 2808, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 691, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.7/site-packages/pkg_resources.py", line 589, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: mccabe>=0.2

Expected Results:  
flake8 shouldn't crash

Installing dev-python/mccabe-0.2.1 solved the problem.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2013-06-06 11:36:07 UTC
NOTE my note in ebuild

# requires.txt inc. mccabe however that creates a circular dep
which granted you might not automatically have observed.
Perhaps someone else can suggest a way to enter mccabe for flake8 and resolve this circular dep issue
Comment 2 Lukas Polacek 2013-06-06 11:49:05 UTC
I don't know how to deal with circular dependencies, but at least elog or ewarn message would help. I don't look into ebuilds :)

Isn't a circular dependency an upstream bug?
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2013-06-07 04:42:40 UTC
(In reply to Lukas Polacek from comment #2)
> I don't know how to deal with circular dependencies, but at least elog or
> ewarn message would help. I don't look into ebuilds :)
> 
> Isn't a circular dependency an upstream bug?

Not sure really, but mb we can add the elog
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-06-07 10:02:34 UTC
  07 Jun 2013; Ian Delaney <idella4@gentoo.org> flake8-2.0.ebuild:
  Set mccabe to PDEPEND, fixes Bug #472442