You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2021/02/07 21:02:35 UTC

[incubator-mxnet] branch master updated: [PIP] update manifest to include lib_api.cc (#19850)

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new c459127  [PIP] update manifest to include lib_api.cc (#19850)
c459127 is described below

commit c4591270f16600cc211caa5720cb7e09ddeaa2d3
Author: Sheng Zha <sz...@users.noreply.github.com>
AuthorDate: Sun Feb 7 16:00:37 2021 -0500

    [PIP] update manifest to include lib_api.cc (#19850)
    
    * update manifest to include lib_api.cc
    
    Signed-off-by: Sheng Zha <zh...@amazon.com>
    
    * add cc
    
    Signed-off-by: Sheng Zha <zh...@amazon.com>
    
    * fix lib_api.cc packaging
    
    Signed-off-by: Sheng Zha <zh...@amazon.com>
---
 tools/pip/MANIFEST.in | 2 ++
 tools/pip/setup.py    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/tools/pip/MANIFEST.in b/tools/pip/MANIFEST.in
index 0b042e3..2718efd 100644
--- a/tools/pip/MANIFEST.in
+++ b/tools/pip/MANIFEST.in
@@ -29,4 +29,6 @@ recursive-include mxnet *_LICENSE
 recursive-include mxnet *.h
 recursive-include mxnet *.hpp
 recursive-include mxnet *.cuh
+recursive-include mxnet *.cc
+recursive-include mxnet *.cpp
 recursive-include dmlc_tracker *.py
diff --git a/tools/pip/setup.py b/tools/pip/setup.py
index e96ff9f..896e137 100644
--- a/tools/pip/setup.py
+++ b/tools/pip/setup.py
@@ -103,6 +103,7 @@ shutil.copytree(os.path.join(CURRENT_DIR, 'mxnet-build/3rdparty/tvm/nnvm/include
                 os.path.join(CURRENT_DIR, 'mxnet/include/nnvm'))
 
 # copy cc file for mxnet extensions
+os.mkdir(os.path.join(CURRENT_DIR, 'mxnet/src'))
 shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/src/lib_api.cc'),
             os.path.join(CURRENT_DIR, 'mxnet/src'))