已关闭
[Package] 新增 deb/rpm 包 custom_postinst.sh 和 custom_prerm.sh 脚本 #665
liu-wei创建于  7月29日关闭于  7月30日
liu-wei
liu-wei成员
7月29日 创建

需求描述

为 ops-cv 的 deb/rpm 包新增自定义生命周期管理脚本。

实现方案

PR: https://gitcode.com/cann/ops-cv/pull/1196

custom_postinst.sh(安装后)

  • 安装 es_cv whl 到 site-packages
  • 清理源码目录
  • 创建 init.py
  • 跨架构 .so 拷贝

custom_prerm.sh(卸载前)

  • pip uninstall es_cv
  • 清理 site-packages 残留
  • 删除 init.py 和跨架构 .so
  • 清理空目录

涉及文件

  • scripts/package/ops_cv/rpm_deb/custom_postinst.sh
  • scripts/package/ops_cv/rpm_deb/custom_prerm.sh

关联 PR

  • #1196
likedislike
liu-weiliu-wei成员
7月29日 将 liu-wei 设为负责人
CANN-robotCANN-robot成员
7月30日 关闭了 issue
CANN-robotCANN-robot成员
7月30日 添加了label:resolved