INNER CODE UNIT · Python
_raise_build_error
scikit-image/scikit-image · src/_skimage2/__init__.py:101
def _raise_build_error(e):
# Raise a comprehensible error
import os.path as osp
local_dir = osp.split(__file__)[0]
msg = _STANDARD_MSG
if local_dir == "skimage":
# Picking up the local install: this will work only if the
# install is an 'inplace build'
msg = _INPLACE_MSG
raise ImportError(
f"{e}\nIt seems that scikit-image has not been built correctly.\n{msg}"
)
def _try_append_commit_info(version):
"""Append last commit date and hash to `version`, if available."""
import subprocess