Skip to content

Commit

Permalink
improve missing py-cpuinfo message
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Feb 9, 2024
1 parent 58612d9 commit 8545525
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@

try:
import cpuinfo
except ImportError as e:
logger.error("py-cpuinfo is required")
raise e
except ModuleNotFoundError:
raise ModuleNotFoundError("py-cpuinfo is required to build hdf5plugin, please install it.")
except Exception: # cpuinfo raises Exception for unsupported architectures
logger.warning("Architecture is not supported by cpuinfo")
cpuinfo = None
Expand Down

0 comments on commit 8545525

Please sign in to comment.