diff --git a/cmake/package_tar.cmake b/cmake/package_tar.cmake index 6cf9afa52f7..1f04942d82e 100644 --- a/cmake/package_tar.cmake +++ b/cmake/package_tar.cmake @@ -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") diff --git a/setup.py b/setup.py index 21919f6e1ad..35a484be3f0 100644 --- a/setup.py +++ b/setup.py @@ -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') diff --git a/MS_VERSION b/version.txt similarity index 100% rename from MS_VERSION rename to version.txt