Python: bump minimum version to 3.7
All platforms use 3.7 now, supporting both increases chance some scripts will fail on older versions.
This commit is contained in:
parent
87aa456ea5
commit
7e358b6181
|
@ -763,8 +763,8 @@ if(WITH_PYTHON)
|
|||
# Do this before main 'platform_*' checks,
|
||||
# because UNIX will search for the old Python paths which may not exist.
|
||||
# giving errors about missing paths before this case is met.
|
||||
if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.6")
|
||||
message(FATAL_ERROR "At least Python 3.6 is required to build")
|
||||
if(DEFINED PYTHON_VERSION AND "${PYTHON_VERSION}" VERSION_LESS "3.7")
|
||||
message(FATAL_ERROR "At least Python 3.7 is required to build")
|
||||
endif()
|
||||
|
||||
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/release/scripts/addons/modules")
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#ifndef __BPY_CAPI_UTILS_H__
|
||||
#define __BPY_CAPI_UTILS_H__
|
||||
|
||||
#if PY_VERSION_HEX < 0x03060000
|
||||
# error "Python 3.6 or greater is required, you'll need to update your python."
|
||||
#if PY_VERSION_HEX < 0x03070000
|
||||
# error "Python 3.7 or greater is required, you'll need to update your Python."
|
||||
#endif
|
||||
|
||||
struct EnumPropertyItem;
|
||||
|
|
Loading…
Reference in New Issue