Warn that armel may be broken
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 4 Feb 2023 20:49:19 +0000 (20:49 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 4 Feb 2023 20:49:19 +0000 (20:49 +0000)
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 <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/968210
Forwarded: no

Gbp-Pq: Name 968210_warn_armel_untested.patch

statsmodels/__init__.py

index 6b3835156f8333e338635426381c86d18faa762d..50fb26ca7757daededca736e84f7b13b1e0b3388 100644 (file)
@@ -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