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/21 21:55:14 UTC

[GitHub] yuxihu commented on a change in pull request #13359: [MXNET-1110] find the path to include header files

yuxihu commented on a change in pull request #13359: [MXNET-1110] find the path to include header files
URL: https://github.com/apache/incubator-mxnet/pull/13359#discussion_r235545483
 
 

 ##########
 File path: python/mxnet/libinfo.py
 ##########
 @@ -76,6 +76,33 @@ def find_lib_path():
         os.environ['PATH'] = os.environ['PATH'] + ';' + os.path.dirname(lib_path[0])
     return lib_path
 
+def find_include_path():
+    """Find MXNet dynamic library files.
+     Returns
+    -------
+    incl_path : string
+        Path to the header files.
+    """
+    incl_from_env = os.environ.get('MXNET_INCLUDE_PATH')
+    if incl_from_env:
+        if os.path.isfile(incl_from_env):
+            if not os.path.isabs(incl_from_env):
+                logging.warning("MXNET_INCLUDE_PATH should be an absolute path, instead of: %s",
+                                incl_from_env)
+            else:
+                if os.name == 'nt':
 
 Review comment:
   May be good to add some comments to explain why we need to update the 'PATH' env variable for Windows.

----------------------------------------------------------------
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