Skip to content

Commit

Permalink
Use get_distribution to resolve version. Ref testing-cabal/mock#385.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 4, 2016
1 parent f783aa3 commit 1474cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/version.py
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 1474cf0

Please sign in to comment.