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
parent
b9429cd713
commit
a91c90d06f
|
@ -16,8 +16,6 @@ class Xgboost < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
depends_on "cmake" => :build
|
depends_on "cmake" => :build
|
||||||
depends_on "numpy"
|
|
||||||
depends_on "scipy"
|
|
||||||
|
|
||||||
on_macos do
|
on_macos do
|
||||||
depends_on "libomp"
|
depends_on "libomp"
|
||||||
|
@ -47,11 +45,9 @@ class Xgboost < Formula
|
||||||
ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib
|
ENV.remove "HOMEBREW_LIBRARY_PATHS", Formula["llvm"].opt_lib
|
||||||
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1100)
|
ENV.llvm_clang if OS.mac? && (DevelopmentTools.clang_build_version <= 1100)
|
||||||
|
|
||||||
mkdir "build" do
|
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
|
||||||
system "cmake", *std_cmake_args, ".."
|
system "cmake", "--build", "build"
|
||||||
system "make"
|
system "cmake", "--install", "build"
|
||||||
system "make", "install"
|
|
||||||
end
|
|
||||||
pkgshare.install "demo"
|
pkgshare.install "demo"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue