Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
统一 ops-transformer 安装目录及文件权限的配置方式,清理散落在安装脚本各处的 chmod 权限设置逻辑,改为在统一入口cmake集中处理
规范cann包所安装目录及文件的权限,所有目录均为750,可执行程序为750,python/shell脚本为750, share/info/包名/script目录下安装卸载脚本等统一为740,其他文件为640,符号链接为777, 特殊情况(针对算子仓): opp/built-in目录为550 ,保持不变 opp/built-in/op_impl/ai_core/tbe/impl/xxx 下文件权限为750, /python/site-packages/es_transformer下文件为750 /python/site-packages/es_transformer-*.dist-info下文件为750
核心改动集中在 scripts/package/ops_transformer/scripts/install.sh 与 opp_install.sh:删除了对日志文件、scene.info、version.info、INSTALL_INFO_FILE、script 目录及 filelist.csv 的分散 chmod 操作,这些操作会覆盖cmake中统一规范的权限
/assign @qinhan123
Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.
Backgroud(背景信息)
统一 ops-transformer 安装目录及文件权限的配置方式,清理散落在安装脚本各处的 chmod 权限设置逻辑,改为在统一入口cmake集中处理
Benefit / Necessity (价值/作用)
规范cann包所安装目录及文件的权限,所有目录均为750,可执行程序为750,python/shell脚本为750,
share/info/包名/script目录下安装卸载脚本等统一为740,其他文件为640,符号链接为777,
特殊情况(针对算子仓):
opp/built-in目录为550 ,保持不变
opp/built-in/op_impl/ai_core/tbe/impl/xxx 下文件权限为750,
/python/site-packages/es_transformer下文件为750
/python/site-packages/es_transformer-*.dist-info下文件为750
Design(设计方案)
核心改动集中在 scripts/package/ops_transformer/scripts/install.sh 与 opp_install.sh:删除了对日志文件、scene.info、version.info、INSTALL_INFO_FILE、script 目录及 filelist.csv 的分散 chmod 操作,这些操作会覆盖cmake中统一规范的权限