Remove python pyc file when uninstall

Remove python pyc file when uninstall.

Change-Id: I383faf8fcfaeeb346c9ee38c1aad8577a460281e


[ROCm/rocm_smi_lib commit: c37d4bac8f]
이 커밋은 다음에 포함됨:
Bill(Shuzhou) Liu 작성하고 Shuzhou Liu가 2022-03-23 13:39:57 -04:00를 커밋함
1 부모 bc3759120d
커밋 5c0dc0f383
1 파일이 변경됨
+6
+6
파일 보기
@@ -10,9 +10,15 @@ rm_ldconfig() {
fi
}
rm_pyc() {
# remove pyc file generated by python
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/rocm_smi/bin/__pycache__
}
case "$1" in
( remove | upgrade)
rm_ldconfig
rm_pyc
;;
( purge )
;;