Commit 60270c24 authored by xoviat's avatar xoviat Committed by GitHub

commands: dist_info: say something!

The dist_info command did not say anything like other
commands did. This gives some more helpful information.
parent 4995726b
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment