Commit 2c6ea381 authored by PJ Eby's avatar PJ Eby

Cosmetic improvements to progress messages.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041057
parent 5c31d275
......@@ -143,14 +143,13 @@ class easy_install(Command):
def easy_install(self, spec):
tmpdir = self.alloc_tmp()
try:
print "Downloading", spec
download = self.package_index.download(spec, tmpdir)
if download is None:
raise RuntimeError(
"Could not find distribution for %r" % spec
)
print "Installing", os.path.basename(download)
print "Processing", os.path.basename(download)
for dist in self.install_eggs(download, self.zip_ok, tmpdir):
self.package_index.add(dist)
self.install_egg_scripts(dist)
......@@ -162,6 +161,7 @@ class easy_install(Command):
def install_egg_scripts(self, dist):
metadata = dist.metadata
if self.exclude_scripts or not metadata.metadata_isdir('scripts'):
......@@ -172,7 +172,7 @@ class easy_install(Command):
for script_name in metadata.metadata_listdir('scripts'):
target = os.path.join(self.script_dir, script_name)
print "Installing", script_name, "to", target
print "Installing", script_name, "script to", self.script_dir
script_text = metadata.get_metadata('scripts/'+script_name)
script_text = script_text.replace('\r','\n')
......@@ -226,10 +226,10 @@ class easy_install(Command):
"Multiple setup scripts in %s" % dist_filename
)
setup_script = setups[0]
from setuptools.command import bdist_egg
sys.modules.setdefault('distutils.command.bdist_egg', bdist_egg)
try:
print "Running", setup_script[len(tmpdir)+1:]
run_setup(setup_script, ['-q', 'bdist_egg'])
except SystemExit, v:
raise RuntimeError(
......
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