From 60270c2422caa7ed2b33a327c63a85395f7c23a8 Mon Sep 17 00:00:00 2001 From: xoviat Date: Fri, 13 Oct 2017 16:02:38 -0500 Subject: commands: dist_info: say something! The dist_info command did not say anything like other commands did. This gives some more helpful information. --- setuptools/command/dist_info.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py index c8dc659b..c6c6dacb 100644 --- a/setuptools/command/dist_info.py +++ b/setuptools/command/dist_info.py @@ -7,6 +7,7 @@ import os import shutil from distutils.core import Command +from distutils import log class dist_info(Command): @@ -28,10 +29,12 @@ class dist_info(Command): egg_info = self.get_finalized_command('egg_info') egg_info.run() dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info' + log.info("creating '{}'".format(os.path.abspath(dist_info_dir))) bdist_wheel = self.get_finalized_command('bdist_wheel') bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir) if self.egg_base: - shutil.move(dist_info_dir, os.path.join( - self.egg_base, dist_info_dir)) + destination = os.path.join(self.egg_base, dist_info_dir) + log.info("creating '{}'".format(os.path.abspath(destination))) + shutil.move(dist_info_dir, destination) -- cgit v1.2.1