[Python-checkins] python/nondist/sandbox/setuptools easy_install.py, 1.19, 1.20
pje@users.sourceforge.net
pje at users.sourceforge.net
Tue Jun 14 03:27:15 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4879
Modified Files:
easy_install.py
Log Message:
Cosmetic improvements to progress messages.
Index: easy_install.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/easy_install.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- easy_install.py 12 Jun 2005 21:47:32 -0000 1.19
+++ easy_install.py 14 Jun 2005 01:27:12 -0000 1.20
@@ -143,14 +143,13 @@
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 @@
+
def install_egg_scripts(self, dist):
metadata = dist.metadata
if self.exclude_scripts or not metadata.metadata_isdir('scripts'):
@@ -172,7 +172,7 @@
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 @@
"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(
More information about the Python-checkins
mailing list