From 9d6aa8264d6e6ecccdf3fe4b0b592fef543047dd Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sat, 2 Jan 2021 00:02:57 -0600 Subject: [PATCH] [python-package] remove unnecessary files to reduce sdist size (fixes #6560) --- python-package/MANIFEST.in | 53 ++++++++++++++++++++++++++++++++++---- 1 file changed, 48 insertions(+), 5 deletions(-) diff --git a/python-package/MANIFEST.in b/python-package/MANIFEST.in index 1bf9ad3f9dfb..63ee42ffbd8d 100644 --- a/python-package/MANIFEST.in +++ b/python-package/MANIFEST.in @@ -1,11 +1,54 @@ -include *.rst +include README.rst +include xgboost/LICENSE include xgboost/VERSION include xgboost/CMakeLists.txt -recursive-include xgboost * +include xgboost/py.typed +recursive-include xgboost *.py +recursive-include xgboost/cmake * +exclude xgboost/cmake/RPackageInstall.cmake.in +exclude xgboost/cmake/RPackageInstallTargetSetup.cmake +exclude xgboost/cmake/Sanitizer.cmake +exclude xgboost/cmake/modules/FindASan.cmake +exclude xgboost/cmake/modules/FindLSan.cmake +exclude xgboost/cmake/modules/FindLibR.cmake +exclude xgboost/cmake/modules/FindTSan.cmake +exclude xgboost/cmake/modules/FindUBSan.cmake recursive-include xgboost/include * +recursive-include xgboost/plugin * recursive-include xgboost/src * -recursive-include xgboost/rabit * -recursive-include xgboost/dmlc-core * -global-exclude *.py[oc] \ No newline at end of file +include xgboost/rabit/CMakeLists.txt +recursive-include xgboost/rabit/include * +recursive-include xgboost/rabit/src * +prune xgboost/rabit/doc +prune xgboost/rabit/guide + +include xgboost/dmlc-core/CMakeLists.txt + +recursive-include xgboost/dmlc-core/cmake * +exclude xgboost/dmlc-core/cmake/gtest_cmake.in +exclude xgboost/dmlc-core/cmake/lint.cmake +exclude xgboost/dmlc-core/cmake/Sanitizer.cmake +exclude xgboost/dmlc-core/cmake/Modules/FindASan.cmake +exclude xgboost/dmlc-core/cmake/Modules/FindLSan.cmake +exclude xgboost/dmlc-core/cmake/Modules/FindTSan.cmake +exclude xgboost/dmlc-core/cmake/Modules/FindUBSan.cmake + +recursive-include xgboost/dmlc-core/include * +recursive-include xgboost/dmlc-core/include * +recursive-include xgboost/dmlc-core/make * +recursive-include xgboost/dmlc-core/src * +include xgboost/dmlc-core/tracker/dmlc-submit +recursive-include xgboost/dmlc-core/tracker/dmlc_tracker *.py +include xgboost/dmlc-core/tracker/yarn/build.bat +include xgboost/dmlc-core/tracker/yarn/build.sh +include xgboost/dmlc-core/tracker/yarn/pom.xml +recursive-include xgboost/dmlc-core/tracker/yarn/src * +include xgboost/dmlc-core/windows/dmlc.sln +include xgboost/dmlc-core/windows/dmlc/dmlc.vcxproj + +prune xgboost/dmlc-core/doc +prune xgboost/dmlc-core/scripts/ + +global-exclude *.py[oc]