[coll] Move the rabit poll helper. (#10349)
This commit is contained in:
@@ -17,7 +17,7 @@ cd jvm-packages
|
||||
rm -rf $(find . -name target)
|
||||
rm -rf ../build/
|
||||
|
||||
# Re-build package without Mock Rabit
|
||||
# Re-build package
|
||||
# Maven profiles:
|
||||
# `default` includes modules: xgboost4j, xgboost4j-spark, xgboost4j-flink, xgboost4j-example
|
||||
# `gpu` includes modules: xgboost4j-gpu, xgboost4j-spark-gpu, sets `use.cuda = ON`
|
||||
|
||||
@@ -50,10 +50,6 @@ def pack_rpackage() -> Path:
|
||||
shutil.copytree("src", dest / "src" / "src")
|
||||
shutil.copytree("include", dest / "src" / "include")
|
||||
shutil.copytree("amalgamation", dest / "src" / "amalgamation")
|
||||
# rabit
|
||||
rabit = Path("rabit")
|
||||
os.mkdir(dest / "src" / rabit)
|
||||
shutil.copytree(rabit / "include", dest / "src" / "rabit" / "include")
|
||||
# dmlc-core
|
||||
dmlc_core = Path("dmlc-core")
|
||||
os.mkdir(dest / "src" / dmlc_core)
|
||||
|
||||
@@ -192,8 +192,7 @@ class ClangTidy(object):
|
||||
def should_lint(path):
|
||||
if not self.cpp_lint and path.endswith('.cc'):
|
||||
return False
|
||||
isxgb = path.find('rabit') == -1
|
||||
isxgb = isxgb and path.find('dmlc-core') == -1
|
||||
isxgb = path.find('dmlc-core') == -1
|
||||
isxgb = isxgb and (not path.startswith(self.cdb_path))
|
||||
if isxgb:
|
||||
print(path)
|
||||
|
||||
Reference in New Issue
Block a user