mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Clarify setuptools requirement message by including the minimum version
This commit is contained in:
parent
2902ce7985
commit
55272b264e
|
@ -89,7 +89,7 @@ class WheelCommand(Command):
|
|||
except ImportError:
|
||||
raise CommandError("'pip wheel' requires bdist_wheel from the 'wheel' distribution.")
|
||||
if not wheel_setuptools_support():
|
||||
raise CommandError("'pip wheel' requires setuptools with dist-info support.")
|
||||
raise CommandError("'pip wheel' requires setuptools >= 0.8 for dist-info support.")
|
||||
|
||||
index_urls = [options.index_url] + options.extra_index_urls
|
||||
if options.no_index:
|
||||
|
|
|
@ -83,7 +83,7 @@ class PackageFinder(object):
|
|||
def use_wheel(self, value):
|
||||
self._use_wheel = value
|
||||
if self._use_wheel and not wheel_setuptools_support():
|
||||
raise InstallationError("pip's wheel support requires setuptools with dist-info support.")
|
||||
raise InstallationError("pip's wheel support requires setuptools >= 0.8 for dist-info support.")
|
||||
|
||||
def add_dependency_links(self, links):
|
||||
## FIXME: this shouldn't be global list this, it should only
|
||||
|
|
|
@ -26,7 +26,7 @@ def wheel_setuptools_support():
|
|||
"""
|
||||
fulfilled = hasattr(pkg_resources, 'DistInfoDistribution')
|
||||
if not fulfilled:
|
||||
logger.warn("A setuptools that supports dist-info is required for wheel installs.")
|
||||
logger.warn("Wheel installs require setuptools >= 0.8 for dist-info support.")
|
||||
return fulfilled
|
||||
|
||||
def rehash(path, algo='sha256', blocksize=1<<20):
|
||||
|
|
Loading…
Reference in a new issue