From 1474cf0f7e2b973eb102aef311939228b83e31b6 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 4 Dec 2016 11:37:49 -0500 Subject: [PATCH] Use get_distribution to resolve version. Ref testing-cabal/mock#385. --- setuptools/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/version.py b/setuptools/version.py index f2b407228e..95e1869658 100644 --- a/setuptools/version.py +++ b/setuptools/version.py @@ -1,6 +1,6 @@ import pkg_resources try: - __version__ = pkg_resources.require('setuptools')[0].version + __version__ = pkg_resources.get_distribution('setuptools').version except Exception: __version__ = 'unknown'