| 1 | # Although the canonical way to get the package version is using pkg_resources |
| 2 | # as below, this turns out to be very slow on systems with lots of packages. |
| 3 | # So, until that is remedied, we'll import the version from a local file |
| 4 | # created by setuptools_scm. |
| 5 | |
| 6 | # from pkg_resources import get_distribution, DistributionNotFound |
| 7 | # try: |
| 8 | # __version__ = get_distribution(__name__).version |
| 9 | # except DistributionNotFound: |
| 10 | # # package is not installed |
| 11 | # pass |
| 12 | |
| 13 | from .version import version as __version__ |
| 14 | from ._version import ( # noqa: F401 |
| 15 | library_version_number, |
| 16 | library_version_string, |
| 17 | ) |
| 18 | |
| 19 | VERSION = __version__ |