xgboost: remove `numpy` and `scipy` (#106980)

These were added in 63a51f9d but the associated PR (#60246) gives no
indication of why.

I think these are needed to build they Python bindings, but we don't do
that. Let's try removing them.
master
Carlo Cabrera 2022-08-01 00:42:19 +08:00 committed by GitHub
parent b9429cd713
commit a91c90d06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -16,8 +16,6 @@ class Xgboost < Formula
end
depends_on "cmake" => :build
depends_on "numpy"
depends_on "scipy"
on_macos do
depends_on "libomp"
@ -47,11 +45,9 @@ class Xgboost < Formula
ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1100)
mkdir "build" do
system "cmake", *std_cmake_args, ".."
system "make"
system "make", "install"
end
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
pkgshare.install "demo"
end