mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 15:16:01 +02:00
set python==3.10 as minimum supported
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user