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

This commit is contained in:
Andrey Tereskin 2017-01-10 03:40:24 +09:00 committed by Tianqi Chen
parent 87e897f428
commit cfb9b11aa4

View File

@ -16,7 +16,7 @@ libpath_py = os.path.join(CURRENT_DIR, 'xgboost/libpath.py')
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