Lines Matching +full:python +full:- +full:version
1 # Macros and functions related to detecting details of the Python environment.
3 # Finds and configures python packages needed to build MLIR Python bindings.
7 # Prime the search for python to see if there is a full development
17 # the Python libraries are not available. When possible, limit to just
19 # See https://pybind11.readthedocs.io/en/stable/compiling.html#findpython-mode
25 # It's a little silly to detect Python a second time, but nanobind's cmake
27 find_package(Python ${LLVM_MINIMUM_PYTHON_VERSION}
31 message(STATUS "Found python include dirs: ${Python3_INCLUDE_DIRS}")
32 message(STATUS "Found python libraries: ${Python3_LIBRARIES}")
37 message(STATUS "Python prefix = '${PYTHON_MODULE_PREFIX}', "
44 message(STATUS "Python prefix = '${PYTHON_MODULE_PREFIX}', "
50 # Detects a pybind11 package installed in the current python environment
52 # installed via pip, which typically yields a much more recent version than
56 message(STATUS "Using explicit pybind11 cmake directory: ${pybind11_DIR} (-Dpybind11_DIR to change)")
58 message(STATUS "Checking for pybind11 in python path...")
61 -c "import pybind11;print(pybind11.get_cmake_dir(), end='')"
76 # Detects a nanobind package installed in the current python environment
78 # installed via pip, which typically yields a much more recent version than
82 message(STATUS "Using explicit nanobind cmake directory: ${nanobind_DIR} (-Dnanobind_DIR to change)")
84 message(STATUS "Checking for nanobind in python path...")
87 -c "import nanobind;print(nanobind.cmake_dir(), end='')"
100 -c "import nanobind;print(nanobind.include_dir(), end='')"