Path: blob/master/venv/Lib/site-packages/setuptools/command/dist_info.py
811 views
"""1Create a dist_info directory2As defined in the wheel specification3"""45import os67from distutils.core import Command8from distutils import log91011class dist_info(Command):1213description = 'create a .dist-info directory'1415user_options = [16('egg-base=', 'e', "directory containing .egg-info directories"17" (default: top of the source tree)"),18]1920def initialize_options(self):21self.egg_base = None2223def finalize_options(self):24pass2526def run(self):27egg_info = self.get_finalized_command('egg_info')28egg_info.egg_base = self.egg_base29egg_info.finalize_options()30egg_info.run()31dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info'32log.info("creating '{}'".format(os.path.abspath(dist_info_dir)))3334bdist_wheel = self.get_finalized_command('bdist_wheel')35bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir)363738