Permalink
Browse files

Make lib path relatrive to fix setup error #1932 (#1947)

  • Loading branch information...
1 parent 87e897f commit cfb9b11aa41b396e44790608c2898bb0b3887005 @diver-in-sky diver-in-sky committed with tqchen Jan 9, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 python-package/setup.py
@@ -16,7 +16,7 @@
libpath = {'__file__': libpath_py}
exec(compile(open(libpath_py, "rb").read(), libpath_py, 'exec'), libpath, libpath)
-LIB_PATH = libpath['find_lib_path']()
+LIB_PATH = [os.path.relpath(libfile, CURRENT_DIR) for libfile in libpath['find_lib_path']()]
print("Install libxgboost from: %s" % LIB_PATH)
# Please use setup_pip.py for generating and deploying pip installation
# detailed instruction in setup_pip.py

0 comments on commit cfb9b11

Please sign in to comment.