Lines Matching +full:python +full:- +full:packaging
2 dnl # ZFS_AC_PYTHON_MODULE(module_name, [action-if-true], [action-if-false])
4 dnl # Checks for Python module. Freely inspired by AX_PYTHON_MODULE
5 dnl # https://www.gnu.org/software/autoconf-archive/ax_python_module.html
9 PYTHON_NAME=${PYTHON##*/}
11 AS_IF([$PYTHON -c "import $1" 2>/dev/null], [
21 dnl # Determines if pyzfs can be built, requires Python 3.6 or later.
25 AS_HELP_STRING([--enable-pyzfs],
26 [install libzfs_core python bindings @<:@default=check@:>@]),
35 DEFINE_PYZFS='--with pyzfs'
37 DEFINE_PYZFS='--without pyzfs'
40 AS_IF([test "$PYTHON" != :], [
44 DEFINE_PYZFS='--without pyzfs'
53 AS_IF([test "x$ZFS_CONFIG" = xkernel -o "x$ZFS_CONFIG" = xsrpm ], [
60 dnl # Python "packaging" (or, failing that, "distlib") module is required to build and install pyzfs
62 AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [
63 ZFS_AC_PYTHON_MODULE([packaging], [], [
66 AC_MSG_ERROR("Python $PYTHON_VERSION packaging and distlib modules are not installed")
75 dnl # Require python3-devel libraries
77 AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [
80 [AC_MSG_ERROR("Python $PYTHON_VERSION unknown")]
94 dnl # Python "setuptools" module is required to build and install pyzfs
96 AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [
99 AC_MSG_ERROR("Python $PYTHON_VERSION setuptools is not installed")
107 dnl # Python "cffi" module is required to run pyzfs
109 AS_IF([test "x$enable_pyzfs" = xcheck -o "x$enable_pyzfs" = xyes], [
112 AC_MSG_ERROR("Python $PYTHON_VERSION cffi is not installed")