From 79f521c3873953ef71ac9a508a19efb93cfb7feb Mon Sep 17 00:00:00 2001 From: totaam Date: Sun, 9 Oct 2022 19:41:01 +0700 Subject: [PATCH] #3592 warn if not building for 64-bits --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 90c51db7f2..22d6f7ef98 100755 --- a/setup.py +++ b/setup.py @@ -31,6 +31,13 @@ is_CentOS, is_AlmaLinux, is_RockyLinux, is_RedHat, is_openSUSE, is_OracleLinux, ) +if BITS!=64: + print(f"Warning: {BITS}-bit architecture, only 64-bits are officially supported") + from time import sleep + for _ in range(5): + sleep(1) + print(".") + #******************************************************************************* print(" ".join(sys.argv))