forked from pool/python-py-cpuinfo
Accepting request 671208 from home:Andreas_Schwab:Factory
- remove-arch-check.patch: disable arch check that breaks the testsuite OBS-URL: https://build.opensuse.org/request/show/671208 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-cpuinfo?expand=0&rev=9
This commit is contained in:
12
remove-arch-check.patch
Normal file
12
remove-arch-check.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
Index: py-cpuinfo-3.1.0/cpuinfo/cpuinfo.py
|
||||
===================================================================
|
||||
--- py-cpuinfo-3.1.0.orig/cpuinfo/cpuinfo.py
|
||||
+++ py-cpuinfo-3.1.0/cpuinfo/cpuinfo.py
|
||||
@@ -1783,6 +1783,7 @@ def get_cpu_info():
|
||||
|
||||
# Make sure we are running on a supported system
|
||||
def _check_arch():
|
||||
+ return
|
||||
arch, bits = parse_arch(DataSource.raw_arch_string)
|
||||
if not arch in ['X86_32', 'X86_64', 'ARM_7', 'ARM_8', 'PPC_64']:
|
||||
raise Exception("py-cpuinfo currently only works on X86 and some PPC and ARM CPUs.")
|
Reference in New Issue
Block a user