Warn that pandas is possibly broken on mips(64)(el)
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 13 Nov 2022 10:36:51 +0000 (10:36 +0000)
committerGraham Inggs <ginggs@debian.org>
Sun, 13 Nov 2022 10:36:51 +0000 (10:36 +0000)
Tests disabled in d/rules

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name mips_warning.patch

pandas/__init__.py

index 0b04e1e08a425b214bbd834fc614a3f68234328f..97761875e2c52bc031b6999408be2f30fb081286 100644 (file)
@@ -2,6 +2,12 @@
 
 __docformat__ = "restructuredtext"
 
+import platform
+import warnings
+if 'mips' in platform.uname()[4]:
+    warnings.warn("This appears to be a mips system, on which pandas is buggy (may give wrong answers or crash)")
+del platform, warnings
+
 # Let users know if they're missing any of our hard dependencies
 hard_dependencies = ("numpy", "pytz", "dateutil")
 missing_dependencies = []