Don't warn about /simple/ fallback for PyPI

and display a little more info about the index used.
This commit is contained in:
Marc Abramowitz 2014-12-14 00:52:21 -08:00
parent 9552e68afb
commit 731783029f
1 changed files with 4 additions and 5 deletions

View File

@ -302,12 +302,11 @@ class PackageFinder(object):
)
page = self._get_page(main_index_url, req)
if page is None:
if page is None and 'pypi.python.org' not in str(main_index_url):
warnings.warn(
"One or more of your dependencies required using a "
"deprecated fallback to looking at /simple/ to discover "
"it's real name. It is suggested to upgrade your index to "
" support normalized names as the name in /simple/{name}.",
"Failed to find %r at %s. It is suggested to upgrade "
"your index to support normalized names as the name in "
"/simple/{name}." % (req.name, main_index_url),
RemovedInPip8Warning,
)