From 7e358b61818d7c9a4d60c42266d7d2e5008ff4ea Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 4 Feb 2019 21:58:34 +1100 Subject: Python: bump minimum version to 3.7 All platforms use 3.7 now, supporting both increases chance some scripts will fail on older versions. --- CMakeLists.txt | 4 ++-- source/blender/python/intern/bpy_capi_utils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d599277fec..569e0bf7c83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") diff --git a/source/blender/python/intern/bpy_capi_utils.h b/source/blender/python/intern/bpy_capi_utils.h index f05d9e7631f..cd34d61ea7d 100644 --- a/source/blender/python/intern/bpy_capi_utils.h +++ b/source/blender/python/intern/bpy_capi_utils.h @@ -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; -- cgit v1.2.3