pypa / setuptools

Official project repository for the Setuptools build system
https://pypi.org/project/setuptools/
MIT License
2.44k stars 1.17k forks source link

pkg_resources is unfriendly for develop installs #208

Open ghost opened 10 years ago

ghost commented 10 years ago

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

ghost commented 9 years ago

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Issue #346 was marked as a duplicate of this issue.