From b51ae87828904b5d998e22e30d9bda7785384af7 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 21 Dec 2020 14:59:34 +0000 Subject: [PATCH] samples: check for Python 3.9 --- modules/python/package/setup.py | 1 + samples/_winpack_run_python_sample.cmd | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/python/package/setup.py b/modules/python/package/setup.py index 5e4b0daa57..c598382dfb 100644 --- a/modules/python/package/setup.py +++ b/modules/python/package/setup.py @@ -45,6 +45,7 @@ def main(): 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Programming Language :: C++', 'Programming Language :: Python :: Implementation :: CPython', 'Topic :: Scientific/Engineering', diff --git a/samples/_winpack_run_python_sample.cmd b/samples/_winpack_run_python_sample.cmd index ba02af0c99..476bbf6e3e 100644 --- a/samples/_winpack_run_python_sample.cmd +++ b/samples/_winpack_run_python_sample.cmd @@ -23,6 +23,8 @@ IF %ERRORLEVEL% EQU 0 ( GOTO :PYTHON_FOUND ) +CALL :QUERY_PYTHON 3.9 +IF %ERRORLEVEL% EQU 0 GOTO :PYTHON_FOUND CALL :QUERY_PYTHON 3.8 IF %ERRORLEVEL% EQU 0 GOTO :PYTHON_FOUND CALL :QUERY_PYTHON 3.7