#1129502 python-cpuinfo: add code to detect Alpha CPUs; needed for other packages

Package:
python-cpuinfo
Source:
python-cpuinfo
Submitter:
Michael Cree
Date:
2026-03-02 07:51:01 UTC
Severity:
normal
Tags:
#1129502#5
Date:
2026-03-02 07:18:43 UTC
From:
To:
python-cpuinfo is missing code to detect Alpha CPUs.  The attached
patch adds such code.

Could you apply the patch soon as dependent packages fail to build
from source without it, for example, pytables, see:
https://buildd.debian.org/status/fetch.php?pkg=pytables&arch=alpha&ver=3.11.0-2&stamp=1772245356&raw=0

Example failure:

ERROR: test00_description (tables.tests.test_tables.CompressBlosc2TablesTestCase.test00_description)
Checking table description and descriptive fields.
[snip irrelevant part of python backtrace]
  File "/build/reproducible-path/pytables-3.11.0/.pybuild/cpython3_3.14/build/tables/leaf.py", line 446, in _calc_chunkshape
    cpu_info = get_cpu_info()
  File "/build/reproducible-path/pytables-3.11.0/.pybuild/cpython3_3.14/build/tables/leaf.py", line 64, in get_cpu_info
    import cpuinfo
  File "/usr/lib/python3/dist-packages/cpuinfo/__init__.py", line 2, in <module>
    from cpuinfo.cpuinfo import *
  File "/usr/lib/python3/dist-packages/cpuinfo/cpuinfo.py", line 2848, in <module>
    _check_arch()
    ~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/cpuinfo/cpuinfo.py", line 371, in _check_arch
    raise Exception("py-cpuinfo currently only works on X86 "
    		"and some ARM/HPPA/LoongArch/MIPS/PPC/RISCV/SPARC/S390X CPUs." )
Exception: py-cpuinfo currently only works on X86 and some ARM/HPPA/LoongArch/MIPS/PPC/RISCV/SPARC/S390X CPUs.

Regards
Michael.