You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/29 17:55:50 UTC

[GitHub] apeforest commented on a change in pull request #13452: Get the correct include path in pip package

apeforest commented on a change in pull request #13452: Get the correct include path in pip package
URL: https://github.com/apache/incubator-mxnet/pull/13452#discussion_r237594355
 
 

 ##########
 File path: python/mxnet/libinfo.py
 ##########
 @@ -97,9 +97,16 @@ def find_include_path():
 
     curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
     incl_path = os.path.join(curr_path, '../../include/')
-    if not os.path.isdir(incl_path):
-        raise RuntimeError('Cannot find the MXNet include path.\n')
-    return incl_path
+    if os.path.isdir(incl_path):
+        # include path if build from source
+        return incl_path
+    else:
+        incl_path = os.path.join(curr_path, '../include/')
 
 Review comment:
   Yes, thanks to @szha who added it several days ago.
   
   You may find it at: <mxnet_package_location>/lib/python3.5/site-packages/mxnet/include

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services