File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -245,14 +245,16 @@ def run_egg_info(self, force_root_egg_info=False):
245
245
_run_setup_py = """
246
246
__file__ = __SETUP_PY__
247
247
from setuptools.command import egg_info
248
+ import pkg_resources
249
+ import os
248
250
def replacement_run(self):
249
251
self.mkpath(self.egg_info)
250
252
installer = self.distribution.fetch_build_egg
251
- for ep in egg_info .iter_entry_points('egg_info.writers'):
253
+ for ep in pkg_resources .iter_entry_points('egg_info.writers'):
252
254
# require=False is the change we're making:
253
255
writer = ep.load(require=False)
254
256
if writer:
255
- writer(self, ep.name, egg_info. os.path.join(self.egg_info,ep.name))
257
+ writer(self, ep.name, os.path.join(self.egg_info,ep.name))
256
258
self.find_sources()
257
259
egg_info.egg_info.run = replacement_run
258
260
exec(compile(open(__file__).read().replace('\\ r\\ n', '\\ n'), __file__, 'exec'))
You can’t perform that action at this time.
0 commit comments