1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: catch cpuinfo.py import exception
While imported, py-cpuinfo raises an exception on unsupported archs (arm64, mips, ppc64el,
s390x etc.). I've added a try-statement to catch that to prevent FTBFS. c-blosc isn't
build from this package, thus cpuinfo isn't even needed, though.
Author: Daniel Stender <stender@debian.org>
Forwarded: not-needed
diff --git a/setup.py b/setup.py
index 4805d47..9ea43f2 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,10 @@ import sys
from setuptools import Extension
from setuptools import setup
from glob import glob
-import cpuinfo
+try:
+ import cpuinfo
+except Exception:
+ pass
########### Check versions ##########
def exit_with_error(message):
|