From a803595fe07ce3365aafea87d77a86a2e1d198d4 Mon Sep 17 00:00:00 2001 From: Justin Williams Date: Wed, 18 Dec 2024 16:50:54 -0600 Subject: [PATCH] Fixed Python module error [ROCm/amdsmi commit: 747834624b1287904f5d6dce884155f57d1af638] --- projects/amdsmi/RPM/post.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/amdsmi/RPM/post.in b/projects/amdsmi/RPM/post.in index 076b7b5a01..05fd0cc11a 100755 --- a/projects/amdsmi/RPM/post.in +++ b/projects/amdsmi/RPM/post.in @@ -167,7 +167,9 @@ do_install_amdsmi_python_lib() { echo "[WARNING] Setuptools version is less than 28.5. AMD-SMI will not be installed." elif [[ "$(printf '%s\n' "$setuptools_version" "41.0.1" | sort -V | head -n1)" != "41.0.1" ]]; then echo "Using setup.py for installation due to setuptools version $setuptools_version" - python3 "$amdsmi_setup_py_path" install + cd $amdsmi_python_lib_path + python3 setup.py install + cd - else echo "Using pyproject.toml for installation due to setuptools version $setuptools_version" python3 -m pip install "$amdsmi_python_lib_path" --quiet --disable-pip-version-check --no-build-isolation --no-index