Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Formula/numpy@2.1.1_py312.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
class NumpyAT211Py312 < Formula
desc "Package for scientific computing with Python"
homepage "https://www.numpy.org/"
url "https://files.pythonhosted.org/packages/59/5f/9003bb3e632f2b58f5e3a3378902dcc73c5518070736c6740fe52454e8e1/numpy-2.1.1.tar.gz"
sha256 "d0cf7d55b1051387807405b3898efafa862997b4cba8aa5dbe657be794afeafd"
license "BSD-3-Clause"
revision 2
revision 3
head "https://github.com/numpy/numpy.git", branch: "main"

livecheck do
Expand Down Expand Up @@ -38,6 +38,13 @@
end

def install
# Fix build failure on macOS Sequoia/Tahoe with Xcode 16+ (missing std::ptrdiff_t)
if OS.mac? && MacOS.version >= :sequoia
inreplace "numpy/_core/src/umath/string_fastsearch.h",
/^#include <type_traits>/,
"#include <type_traits>\n#include <cstddef>"
end

pythons.each do |python|
python3 = python.opt_libexec/"bin/python"
system python3, "-m", "pip", "install", "-Csetup-args=-Dblas=openblas",
Expand Down
Loading