From e185cd3e05d308c174e56356d78ddc5fa3b21747 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 8 Apr 2025 17:13:54 +0200 Subject: [PATCH] compile: Mark all 32-bit builds as legacy --- COMPATIBILITY.md | 2 +- npbackup/__version__.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md index 33090ff..b832de7 100644 --- a/COMPATIBILITY.md +++ b/COMPATIBILITY.md @@ -8,7 +8,7 @@ These builds will be "legacy" builds, 64 bit builds are sufficient. ### Windows We need Python 3.7 to compile on Windows 7 / Server 2008 R2 -These builds will be "legacy" builds. +These builds will be "legacy" builds, and will run quite slower than their modern counterparts. Also, last restic version to run on Windows 7 is 0.16.2, see https://github.com/restic/restic/issues/4636 (basically go1.21 is not windows 7 compatible anymore) So we actually need to compile restic ourselves with go1.20.12 which is done via restic_legacy_build.cmd script diff --git a/npbackup/__version__.py b/npbackup/__version__.py index 746c9b3..5f1399b 100644 --- a/npbackup/__version__.py +++ b/npbackup/__version__.py @@ -22,8 +22,9 @@ from npbackup.core.nuitka_helper import IS_COMPILED # Python 3.7 versions are considered legacy since they don't support msgspec +# msgspec is only supported on Python 3.8 64-bit and above # Since development currently follows Python 3.12, let's consider anything below 3.12 as legacy -IS_LEGACY = True if sys.version_info[1] < 12 else False +IS_LEGACY = True if (sys.version_info[1] < 12 or python_arch() == "x86") else False try: CURRENT_USER = psutil.Process().username()