diff mbox series

[2/2] rteval: Disable use of python-dmidecode

Message ID 20231220225825.171222-2-jkacur@redhat.com
State New
Headers show
Series [1/2] rteval: Makefile: More rpm cleanups | expand

Commit Message

John Kacur Dec. 20, 2023, 10:58 p.m. UTC
python-dmidecode is not being maintained upstream.
For now just disable it's use in rteval since it is useful but not
essential information for running rteval

In the future look at generating this info directly using dmidecode.

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 README                | 6 ------
 doc/installing.txt    | 9 ---------
 rteval/sysinfo/dmi.py | 4 ++--
 3 files changed, 2 insertions(+), 17 deletions(-)
diff mbox series

Patch

diff --git a/README b/README
index a5cf98344a46..b352d7f66ad2 100644
--- a/README
+++ b/README
@@ -19,15 +19,9 @@  Rteval requires the following packages to run:
 Python >= 3.0
     http://www.python.org/download/
 
-python-ethtool
-    git://git.kernel.org/pub/scm/linux/kernel/git/acme/python-ethtool.git
-
 python-lxml
   http://lxml.de/
 
-python-dmidecode
-    http://www.ohloh.net/p/python-dmidecode
-
 libxml2-python
     http://xmlsoft.org/
 
diff --git a/doc/installing.txt b/doc/installing.txt
index ff2d43cb9481..227249bbc9ed 100644
--- a/doc/installing.txt
+++ b/doc/installing.txt
@@ -1,18 +1,10 @@ 
 The rteval utility requires some external software libraries to run
 properly. These are:
 
-python-ethtool
-  A python library to query network interfaces
-  git://git.kernel.org/pub/scm/linux/kernel/git/acme/python-ethtool.git
-
 python-lxml
   A python library to parse XML files and XSLT stylesheets
   http://lxml.de/
 
-python-dmidecode
-  A python library used to access DMI table information
-  http://www.autonomy.net.au/display/pydmi/Home
-
 libxml2-python
   A python library to parse XML files
   http://xmlsoft.org/
@@ -22,7 +14,6 @@  rt-tests
   git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
 
 
-$ sudo yum install python-{dmidecode,ethtool)
 $ git clone \
   git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
 $ cd rt-tests && sudo make prefix=/usr install
diff --git a/rteval/sysinfo/dmi.py b/rteval/sysinfo/dmi.py
index e8285d263fe6..c01a0eef1435 100644
--- a/rteval/sysinfo/dmi.py
+++ b/rteval/sysinfo/dmi.py
@@ -15,8 +15,8 @@  from rteval import xmlout
 from rteval import rtevalConfig
 
 try:
-    import dmidecode
-    dmidecode_avail = True
+    # import dmidecode
+    dmidecode_avail = False
 except ModuleNotFoundError:
     dmidecode_avail = False