[Bf-blender-cvs] [7e358b61818] master: Python: bump minimum version to 3.7

Campbell Barton noreply at git.blender.org
Mon Feb 4 11:56:26 CET 2019


Commit: 7e358b61818d7c9a4d60c42266d7d2e5008ff4ea
Author: Campbell Barton
Date:   Mon Feb 4 21:58:34 2019 +1100
Branches: master
https://developer.blender.org/rB7e358b61818d7c9a4d60c42266d7d2e5008ff4ea

Python: bump minimum version to 3.7

All platforms use 3.7 now, supporting both increases chance some scripts
will fail on older versions.

===================================================================

M	CMakeLists.txt
M	source/blender/python/intern/bpy_capi_utils.h

===================================================================

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;



More information about the Bf-blender-cvs mailing list