From c8fbb50d8e0fa4168320dbdc7677ef108de2c4aa Mon Sep 17 00:00:00 2001 From: "Bill(Shuzhou) Liu" Date: Thu, 9 Jun 2022 08:59:22 -0400 Subject: [PATCH] Remove python pyc file when uninstall rpm Remove python pyc file when uninstall rpm. Change-Id: I6520b51aac34060b5b90f94a016cec1827a4973f [ROCm/rocm_smi_lib commit: 42f11bdd63368d26fa4910a5804073fd7c71a608] --- projects/rocm-smi-lib/RPM/postun.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/rocm-smi-lib/RPM/postun.in b/projects/rocm-smi-lib/RPM/postun.in index d54cd9b2ea..bb93d0fb73 100755 --- a/projects/rocm-smi-lib/RPM/postun.in +++ b/projects/rocm-smi-lib/RPM/postun.in @@ -4,3 +4,6 @@ if [ $1 -le 1 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf ldconfig fi + +# remove pyc file generated by python +rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/libexec/rocm_smi/__pycache__