diff options
author | Campbell Barton <campbell@blender.org> | 2022-02-22 02:16:25 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-02-22 02:16:25 +0300 |
commit | ec5bbebf3ee165869eba5e980d22f261d4d06f68 (patch) | |
tree | 1201455500219702cc9fd1560b34b6a91acb0a6a /source/blender/python | |
parent | bfdbc78466ac14d45f353db9aa39cb21bb962701 (diff) |
Python: bump minimum version to 3.10
Since Python 3.10 is now supported on all platform,
bump the minimum version to reduce the number of Python versions that
need to be supported simultaneously.
Reviewed By: LazyDodo, sybren, mont29, brecht
Ref D13943
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_capi_utils.h | 4 | ||||
-rw-r--r-- | source/blender/python/mathutils/mathutils.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_capi_utils.h b/source/blender/python/intern/bpy_capi_utils.h index 0889dec36c8..a3cebea3fdb 100644 --- a/source/blender/python/intern/bpy_capi_utils.h +++ b/source/blender/python/intern/bpy_capi_utils.h @@ -20,8 +20,8 @@ #pragma once -#if PY_VERSION_HEX < 0x03090000 -# error "Python 3.9 or greater is required, you'll need to update your Python." +#if PY_VERSION_HEX < 0x030a0000 +# error "Python 3.10 or greater is required, you'll need to update your Python." #endif #ifdef __cplusplus diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index 6eee9ceebb8..22c4549575f 100644 --- a/source/blender/python/mathutils/mathutils.c +++ b/source/blender/python/mathutils/mathutils.c @@ -90,11 +90,7 @@ Py_hash_t mathutils_array_hash(const float *array, size_t array_len) x = 0x345678UL; i = 0; while (--len >= 0) { -#if PY_VERSION_HEX >= 0x30a0000 /* Version: 3.10. */ y = _Py_HashDouble(NULL, (double)(array[i++])); -#else - y = _Py_HashDouble((double)(array[i++])); -#endif if (y == -1) { return -1; } |