File: __init__.py

package info (click to toggle)
python-lz4 3.1.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 552 kB
  • sloc: ansic: 3,088; python: 2,600; makefile: 147
file content (19 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Although the canonical way to get the package version is using pkg_resources
# as below, this turns out to be very slow on systems with lots of packages.
# So, until that is remedied, we'll import the version from a local file
# created by setuptools_scm.

# from pkg_resources import get_distribution, DistributionNotFound
# try:
#     __version__ = get_distribution(__name__).version
# except DistributionNotFound:
#     # package is not installed
#     pass

from .version import version as __version__
from ._version import (  # noqa: F401
    library_version_number,
    library_version_string,
)

VERSION = __version__