From: Brian Warner Date: Tue, 1 Nov 2011 08:00:10 +0000 (-0700) Subject: show-tool-versions: tolerate missing setuptools X-Git-Url: https://git.rkrishnan.org/frontends/listings/pb3user.py?a=commitdiff_plain;h=1bbdec2a2004caebaa7bd2727e65e4acfb767eeb;p=tahoe-lafs%2Ftahoe-lafs.git show-tool-versions: tolerate missing setuptools --- 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: