Pandas failing on Debian big-endian builds · Issue #10425 · pandas-dev/pandas (original) (raw)

Hello,

Package pandas is failing to build from source on Debian big-endian builds with following message:

====================================================================== FAIL: test_to_records (pandas.tests.test_categorical.TestCategoricalAsBlock)

Traceback (most recent call last): File "/«BUILDDIR»/pandas-0.15.1+git125-ge463818/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tests/test_categorical.py", line 2393, in test_to_records tm.assert_almost_equal(result,expected) File "das/src/testing.pyx", line 58, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2745) File "das/src/testing.pyx", line 93, in pandas._testing.assert_almost_equal (pandas/src/testing.c:1830) File "das/src/testing.pyx", line 143, in pandas._testing.assert_almost_equal (pandas/src/testing.c:2618) AssertionError: (0L, 'a') != (0L, 'a')


https://buildd.debian.org/status/package.php?p=pandas&suite=sid

Looking at a upstream source and testing it on big-endian build I found that this problem stops occurring after commit 7eb5668

Difference between this commit and Debian version is big.
I am new to pandas and I did not had much luck in identifying minimal change set needed to patch Debian version of package to work with big-endian.

I have seen TST: better testing for test_where (GH8997) #9015 and that did not help much.

Could someone please take a look at this?
Help is welcomed.

Thank you!

Regards,
Jurica