Skip to content
Snippets Groups Projects
_dev_version.py 374 B
# Try to use setuptools_scm to get the current version; this is only used
# in development installations from the git repository.
# see magicctapipe/version.py for details
try:
    from setuptools_scm import get_version

    version = get_version(root="..", relative_to=__file__)
except Exception as e:
    raise ImportError(f"setuptools_scm broken or not installed: {e}")