aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2015-03-19 09:48:18 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2015-03-19 09:48:18 -0700
commit2283fc214217e5c3dca8cc65045271ab5d0ea522 (patch)
treef95c92095abd8ca4574765d3f836d176e5cd1dd4 /setuptools/command/easy_install.py
parent1581c8404e12f32190d3bc29825b9910a46f2347 (diff)
downloadexternal_python_setuptools-2283fc214217e5c3dca8cc65045271ab5d0ea522.tar.gz
external_python_setuptools-2283fc214217e5c3dca8cc65045271ab5d0ea522.tar.bz2
external_python_setuptools-2283fc214217e5c3dca8cc65045271ab5d0ea522.zip
DistributionNotFound: Show requirers
It is very helpful to know who required the missing package. E.g.: pkg_resources.DistributionNotFound: The 'colorama>=0.3.1' distribution was not found and is required by smlib.log. Note that there was a comment: "unfortunately, zc.buildout uses a str(err) to get the name of the distribution here..", but I did a search in the `buildout` code and I think that is no longer true, so I think that we're free to make the exception message more helpful without risk of breaking buildout: # In clone from https://github.com/buildout/buildout $ ag DistributionNotFound src/zc/buildout/buildout.py 686: except (ImportError, pkg_resources.DistributionNotFound): $ pip install --download=. --no-install zc.buildout ... Saved ./zc.buildout-2.3.1.tar.gz ... $ tar xf zc.buildout-2.3.1.tar.gz $ ag DistributionNotFound zc.buildout-2.3.1 zc.buildout-2.3.1/src/zc/buildout/buildout.py 686: except (ImportError, pkg_resources.DistributionNotFound): --HG-- branch : DistributionNotFound_list_requirers
Diffstat (limited to 'setuptools/command/easy_install.py')
0 files changed, 0 insertions, 0 deletions