From 000ccf04fbd0fc45f2a5ce620eddfd8e4caa3afa Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Sat, 8 Jan 2022 15:55:56 +0100 Subject: [PATCH] Remove workaround to get distro package version --- auto_cpufreq/core.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index fdde197..0999f44 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -981,12 +981,7 @@ def python_info(): print("psutil package:", psutil.__version__) print("platform package:", pl.__version__) print("click package:", click.__version__) - # workaround: Module 'distro' has no '__version__' member () (https://github.com/nir0s/distro/issues/265) - # print("distro:", distro.__version__) - run( - "echo \"distro package\" $(pip3 show distro | sed -n -e 's/^.*Version: //p')", - shell=True, - ) + print("distro package:", distro.__version__) def device_info():