Hello community,

here is the log from the commit of package python3-tables for openSUSE:Factory 
checked in at 2017-01-31 12:46:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-tables (Old)
 and      /work/SRC/openSUSE:Factory/.python3-tables.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-tables"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-tables/python3-tables.changes    
2016-10-18 13:28:40.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-tables.new/python3-tables.changes       
2017-02-03 18:59:22.716844091 +0100
@@ -1,0 +2,6 @@
+Fri Jan  6 08:41:33 UTC 2017 - [email protected]
+
+- new tables-setup.py-gracefuly-handle-cpuinfo-failure.patch
+  to ignore cpuinfo failure (at least for PowerPC)
+
+-------------------------------------------------------------------

New:
----
  tables-setup.py-gracefuly-handle-cpuinfo-failure.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-tables.spec ++++++
--- /var/tmp/diff_new_pack.k6yYpb/_old  2017-02-03 18:59:23.348755336 +0100
+++ /var/tmp/diff_new_pack.k6yYpb/_new  2017-02-03 18:59:23.352754775 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python3-tables
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -45,6 +45,7 @@
 Requires(post): update-alternatives
 Requires(preun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Patch1:         tables-setup.py-gracefuly-handle-cpuinfo-failure.patch
 
 %description
 PyTables is a package for managing hierarchical datasets and
@@ -64,6 +65,7 @@
 
 %prep
 %setup -n tables-%{version}
+%patch1 -p1
 
 %build
 CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build

++++++ tables-setup.py-gracefuly-handle-cpuinfo-failure.patch ++++++
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <[email protected]>
Date: Fri, 23 Sep 2016 21:25:19 -0400
Subject: [PATCH] setup.py: gracefuly handle cpuinfo failure

When comping on aarch64, setup.py fails with:
Exception: py-cpuinfo currently only works on X86 and some ARM CPUs.
Assume that the CPU does not support SSE2 or AVX in importing cpuinfo fails
and continue.
---
 setup.py | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/setup.py b/setup.py
index 6b64a571c3..b0dc5bf12a 100755
--- a/setup.py
+++ b/setup.py
@@ -32,8 +32,13 @@ import distutils.spawn
 from setuptools.command.build_ext import build_ext
 
 # For guessing the capabilities of the CPU for C-Blosc
-import cpuinfo
-cpu_info = cpuinfo.get_cpu_info()
+try:
+    import cpuinfo
+    cpu_info = cpuinfo.get_cpu_info()
+    cpu_flags = cpu_info['flags']
+except Exception as e:
+    print('cpuinfo failed, assuming no CPU features:', e)
+    cpu_flags = []
 
 # The name for the pkg-config utility
 PKG_CONFIG = 'pkg-config'
@@ -812,7 +817,7 @@ if 'BLOSC' not in optional_libs:
             os.remove(fd.name)
 
     # SSE2
-    if 'sse2' in cpu_info['flags']:
+    if 'sse2' in cpu_flags:
         print('SSE2 detected')
         CFLAGS.append('-DSHUFFLE_SSE2_ENABLED')
         if os.name == 'nt':
@@ -826,7 +831,7 @@ if 'BLOSC' not in optional_libs:
                           if 'sse2' in f]
     # AVX2
     # Detection code for AVX2 only works for gcc/clang, not for MSVC yet
-    if ('avx2' in cpu_info['flags'] and
+    if ('avx2' in cpu_flags and
         compiler_has_flags(compiler, ["-mavx2"])):
         print('AVX2 detected')
         CFLAGS.append('-DSHUFFLE_AVX2_ENABLED')
-- 
2.9.0

</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a 
href='http://git.zx2c4.com/cgit/about/'>cgit v0.12</a> at 2017-01-05 14:51:31 
(GMT)</div>
</div> <!-- id=cgit -->
</body>
</html>

Reply via email to