import sys


if not sys.version_info >= (3, 7):
    raise EnvironmentError


import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)  # type: ignore


def _test_install():
    try:
        from . import conftest  # noqa
    except ImportError:
        pass
    else:
        raise EnvironmentError

    from . import revision
    rev = revision.get_revision()
    if not isinstance(rev, str) or len(rev) != 40:
        raise ValueError(rev)
