Skip to content

Commit

Permalink
Add Library\mingw-w64 to Windows search path (#10643)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Jul 29, 2024
1 parent 449be7a commit d4b82f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python-package/packager/nativelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def locate_or_build_libxgboost(
sys_prefix / "Library",
sys_prefix / "Library" / "bin",
sys_prefix / "Library" / "lib",
sys_prefix / "Library" / "mingw-w64",
sys_prefix / "Library" / "mingw-w64" / "bin",
sys_prefix / "Library" / "mingw-w64" / "lib",
]
sys_prefix_candidates = [
p.expanduser().resolve() for p in sys_prefix_candidates
Expand Down
3 changes: 3 additions & 0 deletions python-package/xgboost/libpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def find_lib_path() -> List[str]:
os.path.join(sys.base_prefix, "Library"),
os.path.join(sys.base_prefix, "Library", "bin"),
os.path.join(sys.base_prefix, "Library", "lib"),
os.path.join(sys.base_prefix, "Library", "mingw-w64"),
os.path.join(sys.base_prefix, "Library", "mingw-w64", "bin"),
os.path.join(sys.base_prefix, "Library", "mingw-w64", "lib"),
]
)
dll_path = [os.path.join(p, "xgboost.dll") for p in dll_path]
Expand Down

0 comments on commit d4b82f5

Please sign in to comment.