add platform if statement in setup.py for pip for pull #450 issuecomment-133795287

This commit is contained in:
phunterlau
2015-08-23 20:38:26 -07:00
parent 5e81a210ce
commit f258a68029
3 changed files with 17 additions and 7 deletions

View File

@@ -45,8 +45,12 @@ def find_lib_path():
if os.name == 'nt':
if platform.architecture()[0] == '64bit':
dll_path.append(os.path.join(curr_path, '../../windows/x64/Release/'))
#hack for pip installation when copy all parent source directory here
dll_path.append(os.path.join(curr_path, './windows/x64/Release/'))
else:
dll_path.append(os.path.join(curr_path, '../../windows/Release/'))
#hack for pip installation when copy all parent source directory here
dll_path.append(os.path.join(curr_path, './windows/Release/'))
if os.name == 'nt':
dll_path = [os.path.join(p, 'xgboost_wrapper.dll') for p in dll_path]
else: