From 1bbdec2a2004caebaa7bd2727e65e4acfb767eeb Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 1 Nov 2011 01:00:10 -0700 Subject: [PATCH] show-tool-versions: tolerate missing setuptools --- misc/build_helpers/show-tool-versions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/build_helpers/show-tool-versions.py b/misc/build_helpers/show-tool-versions.py index db231278..18718a8b 100644 --- a/misc/build_helpers/show-tool-versions.py +++ b/misc/build_helpers/show-tool-versions.py @@ -94,6 +94,9 @@ def print_setuptools_ver(): traceback.print_exc(file=sys.stderr) sys.stderr.flush() pass + except pkg_resources.DistributionNotFound: + print 'setuptools: DistributionNotFound' + pass def print_py_pkg_ver(pkgname, modulename=None): if modulename is None: -- 2.45.2