Hello community, here is the log from the commit of package python-pandas for openSUSE:Factory checked in at 2016-02-11 12:38:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pandas (Old) and /work/SRC/openSUSE:Factory/.python-pandas.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pandas" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pandas/python-pandas.changes 2016-02-08 09:47:27.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pandas.new/python-pandas.changes 2016-02-11 12:38:06.000000000 +0100 @@ -1,0 +2,9 @@ +Tue Feb 9 17:01:02 UTC 2016 - [email protected] + +- Add 0001_respect_byteorder_in_statareader.patch + Fix StataReader in big endian architectures + https://github.com/pydata/pandas/issues/11282 +- Add 0001_disable_experimental_msgpack_big_endian.patch + Skip experimental msgpack test in big endian systems + +------------------------------------------------------------------- New: ---- 0001_disable_experimental_msgpack_big_endian.patch 0001_respect_byteorder_in_statareader.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pandas.spec ++++++ --- /var/tmp/diff_new_pack.mKas6I/_old 2016-02-11 12:38:07.000000000 +0100 +++ /var/tmp/diff_new_pack.mKas6I/_new 2016-02-11 12:38:07.000000000 +0100 @@ -25,6 +25,10 @@ Group: Development/Libraries/Python Url: http://pandas.pydata.org/ Source0: https://pypi.python.org/packages/source/p/pandas/%{modname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM 0001_respect_byteorder_in_statareader.patch https://github.com/pydata/pandas/issues/11282 +Patch1: 0001_respect_byteorder_in_statareader.patch +# PATCH-FIX-OPENSUSE 0001_disable_experimental_msgpack_big_endian.patch https://github.com/pydata/pandas/issues/11282 +Patch2: 0001_disable_experimental_msgpack_big_endian.patch BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-Cython @@ -82,6 +86,8 @@ %prep %setup -q -n pandas-%{version} +%patch1 -p1 +%patch2 -p1 %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build_ext --inplace ++++++ 0001_disable_experimental_msgpack_big_endian.patch ++++++ diff --git a/pandas/io/tests/test_packers.py b/pandas/io/tests/test_packers.py index 6905225..35686de 100644 --- a/pandas/io/tests/test_packers.py +++ b/pandas/io/tests/test_packers.py @@ -626,6 +626,11 @@ TestPackers assert n > 0, 'Msgpack files are not tested' def test_msgpack(self): + # TODO(aplanas) disable msgpack in big endian systems + # https://github.com/pydata/pandas/issues/11282 + if sys.byteorder == 'big': + raise nose.SkipTest('msgpack bugs in big endian systems') + msgpack_path = tm.get_data_path('legacy_msgpack') n = 0 for v in os.listdir(msgpack_path): ++++++ 0001_respect_byteorder_in_statareader.patch ++++++ >From e5bb7292138943f8e3c5f52276f30739d900e877 Mon Sep 17 00:00:00 2001 From: Alberto Planas <[email protected]> Date: Tue, 9 Feb 2016 15:06:00 +0100 Subject: [PATCH] Respect byteorder in StataReader Partially fix #11282 for s390x --- pandas/io/stata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/stata.py b/pandas/io/stata.py index a878829..e5051ae 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -1356,7 +1356,7 @@ buf = buf[0:2] + buf[4:10] else: buf = buf[0:2] + buf[6:] - v_o = struct.unpack('Q', buf)[0] + v_o = struct.unpack(self.byteorder + 'Q', buf)[0] typ = struct.unpack('B', self.path_or_buf.read(1))[0] length = struct.unpack(self.byteorder + 'I', self.path_or_buf.read(4))[0]
