freebsd support in libpath.py (#3247)

This commit is contained in:
mallniya 2018-05-10 02:13:30 +03:00 committed by Philip Hyunsu Cho
parent 0c0a78c255
commit 039dbe6aec

View File

@ -34,7 +34,7 @@ def find_lib_path():
# hack for pip installation when copy all parent source directory here
dll_path.append(os.path.join(curr_path, './windows/Release/'))
dll_path = [os.path.join(p, 'xgboost.dll') for p in dll_path]
elif sys.platform.startswith('linux'):
elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
dll_path = [os.path.join(p, 'libxgboost.so') for p in dll_path]
elif sys.platform == 'darwin':
dll_path = [os.path.join(p, 'libxgboost.dylib') for p in dll_path]