Changeset 119
- Timestamp:
- 08/02/06 05:12:54 (7 years ago)
- Files:
-
- branches/mk/cheesecake/cheesecake_index.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mk/cheesecake/cheesecake_index.py
r114 r119 1342 1342 from distutils import log 1343 1343 from distutils.errors import DistutilsError 1344 1345 1344 except ImportError, e: 1346 1345 msg = "Error: setuptools is not installed and is required for downloading a package by name\n" … … 1359 1358 1360 1359 try: 1361 # Temporarily set the log verbosity to INFO so we can capture setuptools info messages 1360 # Temporarily set the log verbosity to INFO so we can capture setuptools info messages. 1362 1361 old_threshold = log.set_threshold(log.INFO) 1363 1362 pkgindex = PackageIndex() … … 1371 1370 sys.stdout = old_stdout 1372 1371 log.set_threshold(old_threshold) 1373 1374 1372 except DistutilsError, e: 1375 1373 # Bring back old stdout. … … 1378 1376 log.set_threshold(old_threshold) 1379 1377 1380 drop_setuptools_info(captured_stdout, e rror)1381 self.raise_exception("Error: setuptools returned an error: %s\n" % e)1378 drop_setuptools_info(captured_stdout, e) 1379 self.raise_exception("Error: setuptools returned an error: %s\n" % str(e).splitlines()[0]) 1382 1380 1383 1381 if output is None:
