Skip to content

Commit 5fdb39d

Browse files
hcho3jakirkham
andauthored
Add Library\mingw-w64 to Windows search path (dmlc#10643) (dmlc#10644)
Co-authored-by: jakirkham <[email protected]>
1 parent 80d60df commit 5fdb39d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python-package/packager/nativelib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ def locate_or_build_libxgboost(
138138
sys_prefix / "Library",
139139
sys_prefix / "Library" / "bin",
140140
sys_prefix / "Library" / "lib",
141+
sys_prefix / "Library" / "mingw-w64",
142+
sys_prefix / "Library" / "mingw-w64" / "bin",
143+
sys_prefix / "Library" / "mingw-w64" / "lib",
141144
]
142145
sys_prefix_candidates = [
143146
p.expanduser().resolve() for p in sys_prefix_candidates

python-package/xgboost/libpath.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def find_lib_path() -> List[str]:
3838
os.path.join(sys.base_prefix, "Library"),
3939
os.path.join(sys.base_prefix, "Library", "bin"),
4040
os.path.join(sys.base_prefix, "Library", "lib"),
41+
os.path.join(sys.base_prefix, "Library", "mingw-w64"),
42+
os.path.join(sys.base_prefix, "Library", "mingw-w64", "bin"),
43+
os.path.join(sys.base_prefix, "Library", "mingw-w64", "lib"),
4144
]
4245
)
4346
dll_path = [os.path.join(p, "xgboost.dll") for p in dll_path]

0 commit comments

Comments
 (0)