Warn that pandas is possibly broken on mips(64)(el)
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Tue, 31 Jan 2023 13:21:16 +0000 (13:21 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 31 Jan 2023 13:21:16 +0000 (13:21 +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 3be6a66048548f780842512f9ca7d69f8be6136e..ce11364e7229c34e847a1e1a32141397414b6e59 100644 (file)
@@ -2,6 +2,12 @@ from __future__ import annotations
 
 __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 = []