From: Debian Science Maintainers Date: Wed, 11 Jan 2023 23:51:04 +0000 (+0000) Subject: Warn that armel may be broken X-Git-Tag: archive/raspbian/0.13.5+dfsg-4+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=09e3439c331dc52f370cdf6d7ff2e6f1c345dc9b;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