Skip to content

Commit 2958de3

Browse files
authored
Merge pull request #1172 from xoviat/patch-1
commands: dist_info: say something!
2 parents 4995726 + 60270c2 commit 2958de3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setuptools/command/dist_info.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import shutil
88

99
from distutils.core import Command
10+
from distutils import log
1011

1112

1213
class dist_info(Command):
@@ -28,10 +29,12 @@ def run(self):
2829
egg_info = self.get_finalized_command('egg_info')
2930
egg_info.run()
3031
dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info'
32+
log.info("creating '{}'".format(os.path.abspath(dist_info_dir)))
3133

3234
bdist_wheel = self.get_finalized_command('bdist_wheel')
3335
bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir)
3436

3537
if self.egg_base:
36-
shutil.move(dist_info_dir, os.path.join(
37-
self.egg_base, dist_info_dir))
38+
destination = os.path.join(self.egg_base, dist_info_dir)
39+
log.info("creating '{}'".format(os.path.abspath(destination)))
40+
shutil.move(dist_info_dir, destination)

0 commit comments

Comments
 (0)