File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 7676 is_pyarrow_available ,
7777 py_str ,
7878)
79- from .libpath import find_lib_path , is_sphinx_build
79+ from .libpath import find_lib_path
8080
8181if TYPE_CHECKING :
8282 from pandas import DataFrame as PdDataFrame
@@ -379,30 +379,6 @@ def build_info() -> dict:
379379 return res
380380
381381
382- def _check_glibc () -> None :
383- if is_sphinx_build ():
384- return
385-
386- glibc_ver = build_info ().get ("GLIBC_VERSION" , None )
387- if glibc_ver is not None and (
388- glibc_ver [0 ] < 2 or glibc_ver [0 ] == 2 and glibc_ver [1 ] < 28
389- ):
390- warnings .warn (
391- "Your system has an old version of glibc (< 2.28). We will stop supporting "
392- "Linux distros with glibc older than 2.28 after **May 31, 2025**. "
393- "Please upgrade to a recent Linux distro (with glibc >= 2.28) to use "
394- "future versions of XGBoost.\n "
395- "Note: You have installed the 'manylinux2014' variant of XGBoost. Certain "
396- "features such as GPU algorithms or federated learning are not available. "
397- "To use these features, please upgrade to a recent Linux distro with glibc "
398- "2.28+, and install the 'manylinux_2_28' variant." ,
399- FutureWarning ,
400- )
401-
402-
403- _check_glibc ()
404-
405-
406382def _numpy2ctypes_type (dtype : Type [np .number ]) -> Type [CNumeric ]:
407383 _NUMPY_TO_CTYPES_MAPPING : Dict [Type [np .number ], Type [CNumeric ]] = {
408384 np .float32 : ctypes .c_float ,
You can’t perform that action at this time.
0 commit comments