diff options
Diffstat (limited to 'bindings/python/google_benchmark/version.py')
-rw-r--r-- | bindings/python/google_benchmark/version.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/python/google_benchmark/version.py b/bindings/python/google_benchmark/version.py new file mode 100644 index 0000000..a324693 --- /dev/null +++ b/bindings/python/google_benchmark/version.py @@ -0,0 +1,7 @@ +from importlib.metadata import PackageNotFoundError, version + +try: + __version__ = version("google-benchmark") +except PackageNotFoundError: + # package is not installed + pass |