This reverts commit aec6a04b8e99b42eca431fc0b56947937d3a14c2. (google/benchmark still at hash 1576991177ba97a4b2ff6c45950f1fa6e9aa678c as it was in #83488. Also reapplied same extra local diffs) Verified locally.
8 lines
182 B
Python
8 lines
182 B
Python
from importlib.metadata import PackageNotFoundError, version
|
|
|
|
try:
|
|
__version__ = version("google-benchmark")
|
|
except PackageNotFoundError:
|
|
# package is not installed
|
|
pass
|