forked from mindspore-Ecosystem/mindspore
version
This commit is contained in:
parent
6a6543b181
commit
8dcb00ac65
|
@ -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")
|
||||
|
|
2
setup.py
2
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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue