set python==3.10 as minimum supported

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2025-12-10 12:14:13 +01:00
parent 29a3473772
commit 886f57708c
2 changed files with 8 additions and 7 deletions
+1
View File
@@ -84,6 +84,7 @@ Plus a lot of internal improvements and fixes
- `/detailers` new endpoint to list available detailers, both built-in and any custom downloaded
- `/face-restorers` expanded to list model folders
- **Internal**
- python: set 3.10 as minimum supported version
- sdnq: multiple improvements to quantization and dequantization logic
- torch: update to `torch==2.9.1` for *cuda, ipex, openvino, rocm* backends
- attention: refactor attention handling
+7 -7
View File
@@ -588,12 +588,18 @@ def get_platform():
# check python version
def check_python(supported_minors=[], experimental_minors=[], reason=None):
if supported_minors is None or len(supported_minors) == 0:
supported_minors = [9, 10, 11, 12]
supported_minors = [10, 11, 12]
experimental_minors = [13]
t_start = time.time()
if args.quick:
return
log.info(f'Python: version={platform.python_version()} platform={platform.system()} bin="{sys.executable}" venv="{sys.prefix}"')
if int(sys.version_info.minor) == 12:
os.environ.setdefault('SETUPTOOLS_USE_DISTUTILS', 'local') # hack for python 3.11 setuptools
if int(sys.version_info.minor) == 10:
log.warning(f"Python: version={platform.python_version()} is not actively supported")
if int(sys.version_info.minor) == 9:
log.error(f"Python: version={platform.python_version()} is end-of-life")
if not (int(sys.version_info.major) == 3 and int(sys.version_info.minor) in supported_minors):
if (int(sys.version_info.major) == 3 and int(sys.version_info.minor) in experimental_minors):
log.warning(f"Python experimental: {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}")
@@ -603,12 +609,6 @@ def check_python(supported_minors=[], experimental_minors=[], reason=None):
log.error(reason)
if not args.ignore and not args.experimental:
sys.exit(1)
if int(sys.version_info.minor) == 12:
os.environ.setdefault('SETUPTOOLS_USE_DISTUTILS', 'local') # hack for python 3.11 setuptools
if int(sys.version_info.minor) == 10:
log.warning(f"Python: version={platform.python_version()} is not actively supported")
if int(sys.version_info.minor) == 9:
log.warning(f"Python: version={platform.python_version()} is end-of-life")
if not args.skip_git:
git_cmd = os.environ.get('GIT', "git")
if shutil.which(git_cmd) is None: