summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-10-13 16:02:38 -0500
committerGitHub <noreply@github.com>2017-10-13 16:02:38 -0500
commit60270c2422caa7ed2b33a327c63a85395f7c23a8 (patch)
treebc2f27b7e4baa82f78beef26cf1b82cbffbad65c
parent4995726bbdc92ab1f4235dfc8b9ee08c9f365d3e (diff)
downloadpython-setuptools-git-60270c2422caa7ed2b33a327c63a85395f7c23a8.tar.gz
commands: dist_info: say something!
The dist_info command did not say anything like other commands did. This gives some more helpful information.
-rw-r--r--setuptools/command/dist_info.py7
1 files changed, 5 insertions, 2 deletions
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)