Commit 1474cf0f authored by Jason R. Coombs's avatar Jason R. Coombs

Use get_distribution to resolve version. Ref testing-cabal/mock#385.

parent f783aa36
import pkg_resources
try:
__version__ = pkg_resources.require('setuptools')[0].version
__version__ = pkg_resources.get_distribution('setuptools').version
except Exception:
__version__ = 'unknown'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment