show-tool-versions: tolerate missing setuptools
authorBrian Warner <warner@lothar.com>
Tue, 1 Nov 2011 08:00:10 +0000 (01:00 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 1 Nov 2011 08:00:10 +0000 (01:00 -0700)
misc/build_helpers/show-tool-versions.py

index db2312788a0803712056442f03c681c259934b01..18718a8bf702055ab2587ad69161b4427a36a97d 100644 (file)
@@ -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: