This commit is contained in:
yefeng 2021-07-06 18:51:46 +08:00
parent 6a6543b181
commit 8dcb00ac65
3 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/output)
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/output)
# cpack variables
file(READ ${CMAKE_SOURCE_DIR}/MS_VERSION VERSION_NUMBER)
file(READ ${CMAKE_SOURCE_DIR}/version.txt VERSION_NUMBER)
string(TOLOWER linux_${CMAKE_HOST_SYSTEM_PROCESSOR} PLATFORM_NAME)
set(CPACK_PACKAGE_FILE_NAME mindspore_ascend-${VERSION_NUMBER}-${PLATFORM_NAME})
set(CPACK_GENERATOR "TGZ")

View File

@ -37,7 +37,7 @@ def _read_file(filename):
return f.read()
version = _read_file('MS_VERSION').replace("\n", "")
version = _read_file('version.txt').replace("\n", "")
readme = _read_file('README.md')