mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
python development is not always required (#43212)
* python dev not always required * simpler approach
This commit is contained in:
parent
32af8100e5
commit
1d88f38b5d
@ -941,7 +941,13 @@ set(QGIS_INSTALL_SYS_LIBS TRUE CACHE BOOL "If set to TRUE install all required s
|
||||
set(MIN_PYTHON_VERSION "3.7")
|
||||
set(Python_FIND_FRAMEWORK "LAST")
|
||||
|
||||
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
|
||||
|
||||
if (WITH_BINDINGS)
|
||||
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
|
||||
else()
|
||||
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter)
|
||||
endif()
|
||||
|
||||
message("-- Found Python executable: ${Python_EXECUTABLE} (version ${Python_VERSION})")
|
||||
message("-- Python library: ${Python_LIBRARIES}")
|
||||
message("-- Python site-packages: ${Python_SITEARCH}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user