Commit 4cda766b authored by Gary Poster's avatar Gary Poster

eliminate spurious warning if you are using distribute.

parent 1e1d7e60
...@@ -818,7 +818,7 @@ class Installer: ...@@ -818,7 +818,7 @@ class Installer:
def _maybe_add_setuptools(self, ws, dist): def _maybe_add_setuptools(self, ws, dist):
if dist.has_metadata('namespace_packages.txt'): if dist.has_metadata('namespace_packages.txt'):
for r in dist.requires(): for r in dist.requires():
if r.project_name == 'setuptools': if r.project_name in ('setuptools', 'distribute'):
break break
else: else:
# We have a namespace package but no requirement for setuptools # We have a namespace package but no requirement for setuptools
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment