buildPythonPackage: catch_conflicts should ignore pip

This commit is contained in:
Domen Kožar 2015-11-19 09:56:11 +01:00
parent dfee078df4
commit 6ba529277a

View file

@ -8,7 +8,8 @@ packages = collections.defaultdict(list)
for f in sys.path:
for req in pkg_resources.find_distributions(f):
if req not in packages[req.project_name]:
if req.project_name == 'setuptools':
# some exceptions inside buildPythonPackage
if req.project_name in ['setuptools', 'pip']:
continue
packages[req.project_name].append(req)