getVersionFromPythonModule#
- lsst.utils.packages.getVersionFromPythonModule(module: ModuleType) str#
Determine the version of a python module.
Parameters#
- module
ModuleType Module for which to get version.
Returns#
- version
str The version of the python module.
Raises#
- AttributeError
Raised if
__version__attribute is not set.
Notes#
We supplement the version with information from the
__dependency_versions__(a specific variable set by LSST’ssconsUtilsat build time) only for packages that are typically used only at build-time.- module