[MS][LITE] fix lite python package name v2

This commit is contained in:
luoyuan 2022-06-24 09:47:22 +08:00
parent 6c6d8931c3
commit f5e762c0f4
2 changed files with 12 additions and 7 deletions

View File

@ -177,9 +177,9 @@ build_python_wheel_package() {
mkdir -pv package/mindspore_lite/lib/
cp ../python/api/* package/mindspore_lite/
cp src/*.so package/mindspore_lite/lib/
local pkg_name=mindspore_lite-${VERSION_STR}-linux-$1
local pkg_name=mindspore-lite-${VERSION_STR}-linux-$1
if [[ "$1" == "x86_64" ]]; then
local pkg_name=mindspore_lite-${VERSION_STR}-linux-x64
local pkg_name=mindspore-lite-${VERSION_STR}-linux-x64
fi
if [ -d "${INSTALL_PREFIX}/${pkg_name}/runtime/third_party/glog" ]; then
cp ${INSTALL_PREFIX}/${pkg_name}/runtime/third_party/glog/*.so* package/mindspore_lite/lib/

View File

@ -52,11 +52,16 @@ function linux_release_package()
mkdir -p ${output_path}/release/linux/x86_64/server/
mkdir -p ${output_path}/release/linux/aarch64/server/
cp ${input_path}/centos_x86/avx/mindspore-lite-* ${output_path}/release/linux/x86_64/
cp ${input_path}/linux_aarch64/mindspore-lite-* ${output_path}/release/linux/aarch64/
cp ${input_path}/centos_x86/ascend/mindspore-lite-* ${output_path}/release/linux/x86_64/ascend/
cp ${input_path}/linux_aarch64/ascend/mindspore-lite-* ${output_path}/release/linux/aarch64/ascend/
cp ${input_path}/centos_x86/tensorrt/mindspore-lite-* ${output_path}/release/linux/x86_64/tensorrt/
cp ${input_path}/centos_x86/avx/mindspore*.whl* ${output_path}/release/linux/x86_64/
cp ${input_path}/centos_x86/avx/mindspore*.tar.gz* ${output_path}/release/linux/x86_64/
cp ${input_path}/linux_aarch64/mindspore*.whl* ${output_path}/release/linux/aarch64/
cp ${input_path}/linux_aarch64/mindspore*.tar.gz* ${output_path}/release/linux/aarch64/
cp ${input_path}/centos_x86/ascend/mindspore*.whl* ${output_path}/release/linux/x86_64/ascend/
cp ${input_path}/centos_x86/ascend/mindspore*.tar.gz* ${output_path}/release/linux/x86_64/ascend/
cp ${input_path}/linux_aarch64/ascend/mindspore*.whl* ${output_path}/release/linux/aarch64/ascend/
cp ${input_path}/linux_aarch64/ascend/mindspore*.tar.gz* ${output_path}/release/linux/aarch64/ascend/
cp ${input_path}/centos_x86/tensorrt/mindspore*.whl* ${output_path}/release/linux/x86_64/tensorrt/
cp ${input_path}/centos_x86/tensorrt/mindspore*.tar.gz* ${output_path}/release/linux/x86_64/tensorrt/
cp -r ${input_path}/centos_x86/server/* ${output_path}/release/linux/x86_64/server/
cp -r ${input_path}/linux_aarch64/server/* ${output_path}/release/linux/aarch64/server/