mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-06 15:48:40 +02:00
8e69b498e5
- install VERSION file and copy to build - fix lookup for VERSION file in case of error - update documentation for installing python bindings
8 lines
310 B
Python
8 lines
310 B
Python
# This file is used to get the version of the package from the VERSION file
|
|
from importlib.metadata import PackageNotFoundError, version
|
|
from pathlib import Path
|
|
|
|
try:
|
|
__version__ = version('aare')
|
|
except PackageNotFoundError:
|
|
__version__ = Path(__file__).parent.joinpath('VERSION').read_text().strip() |