Commit 3a67d08b authored by xoviat's avatar xoviat

dist: rename skip install eggs to be private.

parent 12d4fba6
......@@ -30,7 +30,7 @@ __import__('pkg_resources.extern.packaging.specifiers')
__import__('pkg_resources.extern.packaging.version')
skip_install_eggs = False
_skip_install_eggs = False
class SetupRequirementsError(BaseException):
......@@ -340,10 +340,9 @@ class Distribution(Distribution_parse_config_files, _Distribution):
self.dependency_links = attrs.pop('dependency_links', [])
assert_string_list(self, 'dependency_links', self.dependency_links)
if attrs and 'setup_requires' in attrs:
if skip_install_eggs:
if _skip_install_eggs:
raise SetupRequirementsError(attrs['setup_requires'])
else:
self.fetch_build_eggs(attrs['setup_requires'])
self.fetch_build_eggs(attrs['setup_requires'])
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
vars(self).setdefault(ep.name, None)
_Distribution.__init__(self, attrs)
......
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