mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-03 19:46:45 +08:00
compile: Mark all 32-bit builds as legacy
This commit is contained in:
parent
df7ae7ad84
commit
e185cd3e05
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue