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
2 changes: 1 addition & 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 1
revision 2
head "https://github.com/numpy/numpy.git", branch: "main"

livecheck do
Expand Down Expand Up @@ -39,7 +39,7 @@
.sort_by(&:version) # so scripts like `bin/f2py` use newest python
end

def install

Check warning on line 42 in Formula/numpy@2.1.1_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-26)

`brew install --verbose --formula --build-bottle freecad/freecad/numpy@2.1.1_py312` failed on macOS Tahoe (26) on Apple Silicon!

[252/338] Compiling C object numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_ufunc_object.c.o [253/338] Compiling C++ object numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o FAILED: [code=1] numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o clang++ -Inumpy/_core/_multiarray_umath.cpython-312-darwin.so.p -Inumpy/_core -I../numpy/_core -Inumpy/_core/include -I../numpy/_core/include -I../numpy/_core/src/common -I../numpy/_core/src/multiarray -I../numpy/_core/src/npymath -I../numpy/_core/src/umath -I../numpy/_core/src/highway -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/opt/homebrew/Cellar/python@3.12/3.12.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/private/tmp/numpyA2.1.1_py312-20251110-11931-urs1jd/numpy-2.1.1/.mesonpy-ig4rpi2t/meson_cpu -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c++17 -O3 -ftrapping-math -DNPY_HAVE_CLANG_FPSTRICT -DNPY_HAVE_NEON_VFPV4 -DNPY_HAVE_NEON_FP16 -DNPY_HAVE_NEON -DNPY_HAVE_ASIMD -DNPY_INTERNAL_BUILD -DHAVE_NPY_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__STDC_VERSION__=0 -fno-exceptions -fno-rtti -MD -MQ numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o -MF numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o.d -o numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o -c ../numpy/_core/src/umath/string_ufuncs.cpp In file included from ../numpy/_core/src/umath/string_ufuncs.cpp:20: ../numpy/_core/src/umath/string_fastsearch.h:132:5: error: no type named 'ptrdiff_t' in namespace 'std'; did you mean simply 'ptrdiff_t'? 132 | std::ptrdiff_t | ^~~~~~~~~~~~~~ | ptrdiff_t /Applications/Xcode_26.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_ptrdiff_t.h:18:26: note: 'ptrdiff_t' declared here 18 | typedef __PTRDIFF_TYPE__ ptrdiff_t; | ^ In file included from ../numpy/_core/src/umath/string_ufuncs.cpp:20: ../numpy/_core/src/umath/string_fastsearch.h:219:23: error: invalid operands to binary expression ('CheckedIndexer<char>' and 'CheckedIndexer<char>') 219 | return (p - s); | ~ ^ ~ ../numpy/_core/src/umath/string_fastsearch.h:826:20: note: in instantiation of function template specialization 'rfindchar<char>' requested here 826 | return rfindchar(s_, n, p_[0]); | ^ ../numpy/_core/src/umath/string_buffer.h:898:19: note: in instantiation of function template specialization 'fastsearch<char>' requested here 898 | pos = fastsearch(start_loc, end_loc - start_loc, buf2.buf, buf2.after - buf2.buf, -1, FAST_SEARCH); | ^ ../numpy/_core/src/umath/string_ufuncs.cpp:1453:9: note: in instantiation of function template specialization 'string_find<ENCODING::ASCII>' requested here 1453 | string_find<ENCODING::ASCII>, | ^ ../numpy/_core/src/umath/string_buffer.h:720:1: note: candidate template ignored: could not match 'Buffer' against 'CheckedIndexer' 720 | operator-(Buffer<enc> lhs, Buffer<enc> rhs) | ^ ../numpy/_core/src/umath/string_buffer.h:736:1: note: candidate template ignored: could not match 'Buffer' against 'CheckedIndexer' 736 | operator-(Buffer<enc> lhs, npy_int64 rhs) | ^ ../numpy/_core/src/umath/string_fastsearch.h:139:5: note: candidate function not viable: no known conversion from 'CheckedIndexer<char>' to 'size_t' (aka 'unsigned long') for 1st argument 139 | operator-(size_t rhs) | ^ ~~~~~~~~~~ ../numpy/_core/src/umath/string_fastsearch.h:495:27: error: invalid operands to binary expression ('CheckedIndexer<char>' and 'CheckedIndexer<char>') 495 | return

Check failure on line 42 in Formula/numpy@2.1.1_py312.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

`brew install --verbose --formula --build-bottle freecad/freecad/numpy@2.1.1_py312` failed on macOS Sequoia (15) on Apple Silicon!

[252/338] Compiling C object numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_ufunc_object.c.o [253/338] Compiling C++ object numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o FAILED: [code=1] numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o clang++ -Inumpy/_core/_multiarray_umath.cpython-312-darwin.so.p -Inumpy/_core -I../numpy/_core -Inumpy/_core/include -I../numpy/_core/include -I../numpy/_core/src/common -I../numpy/_core/src/multiarray -I../numpy/_core/src/npymath -I../numpy/_core/src/umath -I../numpy/_core/src/highway -I/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/opt/homebrew/Cellar/python@3.12/3.12.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/private/tmp/numpyA2.1.1_py312-20251110-9349-tna1ek/numpy-2.1.1/.mesonpy-tiixfeu8/meson_cpu -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -DNDEBUG -Wall -Winvalid-pch -std=c++17 -O3 -ftrapping-math -DNPY_HAVE_CLANG_FPSTRICT -DNPY_HAVE_NEON_VFPV4 -DNPY_HAVE_NEON_FP16 -DNPY_HAVE_NEON -DNPY_HAVE_ASIMD -DNPY_INTERNAL_BUILD -DHAVE_NPY_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__STDC_VERSION__=0 -fno-exceptions -fno-rtti -MD -MQ numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o -MF numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o.d -o numpy/_core/_multiarray_umath.cpython-312-darwin.so.p/src_umath_string_ufuncs.cpp.o -c ../numpy/_core/src/umath/string_ufuncs.cpp In file included from ../numpy/_core/src/umath/string_ufuncs.cpp:20: ../numpy/_core/src/umath/string_fastsearch.h:132:5: error: no type named 'ptrdiff_t' in namespace 'std'; did you mean simply 'ptrdiff_t'? 132 | std::ptrdiff_t | ^~~~~~~~~~~~~~ | ptrdiff_t /Applications/Xcode_16.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/17/include/__stddef_ptrdiff_t.h:18:26: note: 'ptrdiff_t' declared here 18 | typedef __PTRDIFF_TYPE__ ptrdiff_t; | ^ In file included from ../numpy/_core/src/umath/string_ufuncs.cpp:20: ../numpy/_core/src/umath/string_fastsearch.h:219:23: error: invalid operands to binary expression ('CheckedIndexer<char>' and 'CheckedIndexer<char>') 219 | return (p - s); | ~ ^ ~ ../numpy/_core/src/umath/string_fastsearch.h:826:20: note: in instantiation of function template specialization 'rfindchar<char>' requested here 826 | return rfindchar(s_, n, p_[0]); | ^ ../numpy/_core/src/umath/string_buffer.h:898:19: note: in instantiation of function template specialization 'fastsearch<char>' requested here 898 | pos = fastsearch(start_loc, end_loc - start_loc, buf2.buf, buf2.after - buf2.buf, -1, FAST_SEARCH); | ^ ../numpy/_core/src/umath/string_ufuncs.cpp:1453:9: note: in instantiation of function template specialization 'string_find<ENCODING::ASCII>' requested here 1453 | string_find<ENCODING::ASCII>, | ^ ../numpy/_core/src/umath/string_buffer.h:720:1: note: candidate template ignored: could not match 'Buffer' against 'CheckedIndexer' 720 | operator-(Buffer<enc> lhs, Buffer<enc> rhs) | ^ ../numpy/_core/src/umath/string_buffer.h:736:1: note: candidate template ignored: could not match 'Buffer' against 'CheckedIndexer' 736 | operator-(Buffer<enc> lhs, npy_int64 rhs) | ^ ../numpy/_core/src/umath/string_fastsearch.h:139:5: note: candidate function not viable: no known conversion from 'CheckedIndexer<char>' to 'size_t' (aka 'unsigned long') for 1st argument 139 | operator-(size_t rhs) | ^ ~~~~~~~~~~ ../numpy/_core/src/umath/string_fastsearch.h:495:27: error: invalid operands to binary expression ('CheckedIndexer<char>' and 'CheckedIndexer<char>') 495 | return wi
pythons.each do |python|
python3 = python.opt_libexec/"bin/python"
system python3, "-m", "pip", "install", "-Csetup-args=-Dblas=openblas",
Expand Down
Loading