[pytables] 01/02: Fix build on non x86 platforms
Antonio Valentino
a_valentino-guest at moszumanska.debian.org
Tue Nov 1 08:57:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
a_valentino-guest pushed a commit to branch master
in repository pytables.
commit 29f5967a6c04d07704561fa3b40a83a9ad9af78b
Author: Antonio Valentino <antonio.valentino at tiscali.it>
Date: Tue Nov 1 08:10:01 2016 +0000
Fix build on non x86 platforms
---
debian/changelog | 8 +++++++
.../0005-Ignore-cpuinfo-on-unsupported-archs.patch | 27 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 36 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 1fd2207..175dc07 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pytables (3.3.0-2) UNRELEASED; urgency=medium
+
+ * debian/patches
+ - new 0005-Ignore-cpuinfo-on-unsupported-archs.patch:
+ fix build on non x86 platforms
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Tue, 01 Nov 2016 08:07:13 +0000
+
pytables (3.3.0-1) unstable; urgency=medium
* New upstream release
diff --git a/debian/patches/0005-Ignore-cpuinfo-on-unsupported-archs.patch b/debian/patches/0005-Ignore-cpuinfo-on-unsupported-archs.patch
new file mode 100644
index 0000000..7579676
--- /dev/null
+++ b/debian/patches/0005-Ignore-cpuinfo-on-unsupported-archs.patch
@@ -0,0 +1,27 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Tue, 1 Nov 2016 08:04:42 +0000
+Subject: Ignore cpuinfo on unsupported archs
+
+---
+ setup.py | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index fe2492e..e891926 100755
+--- a/setup.py
++++ b/setup.py
+@@ -32,8 +32,12 @@ 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
++except ImportError:
++ cpu_info = dict(flags=[])
++else:
++ cpu_info = cpuinfo.get_cpu_info()
+
+ # The name for the pkg-config utility
+ PKG_CONFIG = 'pkg-config'
diff --git a/debian/patches/series b/debian/patches/series
index 5bb11ce..1642ba8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
0002-Never-use-the-msse2-flag-explicitly.patch
0003-Do-not-fetch-icons-for-external-web-sites.patch
0004-fix-compatibility-with-HDF5-1.10.patch
+0005-Ignore-cpuinfo-on-unsupported-archs.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytables.git
More information about the debian-science-commits
mailing list