From 156f9a4c56a18ea3f791b7f016465d186d5ef450 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 25 Nov 2022 15:14:28 +0800 Subject: [PATCH] include notice --- cmake/package.cmake | 6 ++++++ setup.py | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/package.cmake b/cmake/package.cmake index 6b0d21d4a8f..84fc18b9246 100644 --- a/cmake/package.cmake +++ b/cmake/package.cmake @@ -269,6 +269,12 @@ install( COMPONENT mindspore ) +file(GLOB NOTICE ${CMAKE_SOURCE_DIR}/Third_Party_Open_Source_Software_Notice) +install( + FILES ${NOTICE} + DESTINATION ${INSTALL_PY_DIR} + COMPONENT mindspore +) install( DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/nn diff --git a/setup.py b/setup.py index 98a1e8e0b84..4acc08f76b1 100644 --- a/setup.py +++ b/setup.py @@ -123,7 +123,8 @@ package_data = { 'include/*', 'include/*/*', 'include/*/*/*', - 'include/*/*/*/*' + 'include/*/*/*/*', + 'Third_Party_Open_Source_Software_Notice' ] }