pkg_resources is unfriendly for develop installs
Open
Nobody has claimed this yet.
bug
major
- Dominant language
- Python
- Stars
- 2.9k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Originally reported by: Kwpolska (Bitbucket: Kwpolska, GitHub: Kwpolska)
setup.py develop is awesome, up to the point when you bump up the package version, at which points this happens:
$ nikola
Traceback (most recent call last):
File "/home/kwpolska/virtualenvs/nikola-py2/bin/nikola", line 5, in <module>
from pkg_resources import load_entry_point
File "/home/kwpolska/virtualenvs/nikola-py2/lib/python2.7/site-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/home/kwpolska/virtualenvs/nikola-py2/lib/python2.7/site-packages/pkg_resources.py", line 446, in _build_master
return cls._build_from_requirements(__requires__)
File "/home/kwpolska/virtualenvs/nikola-py2/lib/python2.7/site-packages/pkg_resources.py", line 459, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/home/kwpolska/virtualenvs/nikola-py2/lib/python2.7/site-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Nikola==7.0.0-rc1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with setup.py develop, then start from pkg_resources.py and the traceback through WorkingSet._build_master, _build_from_requirements, and resolve. Confirm the behavior after bumping the package version; done means the nikola entry point runs without DistributionNotFound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100