Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit c459127

Browse files
authored
[PIP] update manifest to include lib_api.cc (#19850)
* update manifest to include lib_api.cc Signed-off-by: Sheng Zha <zhasheng@amazon.com> * add cc Signed-off-by: Sheng Zha <zhasheng@amazon.com> * fix lib_api.cc packaging Signed-off-by: Sheng Zha <zhasheng@amazon.com>
1 parent caa327b commit c459127

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tools/pip/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ recursive-include mxnet *_LICENSE
2929
recursive-include mxnet *.h
3030
recursive-include mxnet *.hpp
3131
recursive-include mxnet *.cuh
32+
recursive-include mxnet *.cc
33+
recursive-include mxnet *.cpp
3234
recursive-include dmlc_tracker *.py

tools/pip/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
os.path.join(CURRENT_DIR, 'mxnet/include/nnvm'))
104104

105105
# copy cc file for mxnet extensions
106+
os.mkdir(os.path.join(CURRENT_DIR, 'mxnet/src'))
106107
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/src/lib_api.cc'),
107108
os.path.join(CURRENT_DIR, 'mxnet/src'))
108109

0 commit comments

Comments
 (0)