1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

Manage Python Limited API version externally.

This commit is contained in:
Alexander Smorkalov
2024-01-09 18:08:15 +03:00
parent 43c1c81c8c
commit 2beacc07e8
5 changed files with 12 additions and 10 deletions
+4 -1
View File
@@ -13,7 +13,10 @@
// #define Py_DEBUG
#if defined(CVPY_DYNAMIC_INIT) && !defined(Py_DEBUG)
# define Py_LIMITED_API 0x03030000
# ifndef PYTHON3_LIMITED_API_VERSION
# define PYTHON3_LIMITED_API_VERSION 0x03060000
# endif
# define Py_LIMITED_API PYTHON3_LIMITED_API_VERSION
#endif
#include <cmath>