From: Debian Science Maintainers Date: Tue, 14 Feb 2023 22:28:59 +0000 (+0000) Subject: Warn that armel may be broken X-Git-Tag: archive/raspbian/0.13.5+dfsg-7+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=acd468b3526fc97e284384afdb6ff2e240238a22;p=statsmodels.git Warn that armel may be broken armel tests sometimes crash (ignored in d/rules) Wrong answers have previously been seen on armel, and could be hidden by the crash Author: Rebecca N. Palmer Bug-Debian: https://bugs.debian.org/968210 Forwarded: no Gbp-Pq: Name 968210_warn_armel_untested.patch --- diff --git a/statsmodels/__init__.py b/statsmodels/__init__.py index 6b38351..50fb26c 100644 --- a/statsmodels/__init__.py +++ b/statsmodels/__init__.py @@ -1,3 +1,9 @@ +import platform +import sys +import os.path +if os.path.exists('/usr/lib/arm-linux-gnueabi'): + import warnings + warnings.warn("This appears to be an armel system, on which statsmodels is buggy (crashes and possibly wrong answers) - https://bugs.debian.org/968210") from statsmodels._version import __version__, __version_tuple__ debug_warnings = False