Closed rogeriod closed 3 months ago
It looks like an Homebrew issue. meson-python works just fine with Homebrew.
You can install meson-python for the Homebrew Python installation with pip: python -m pip install meson-python
.
When installed from the cmd line as you've suggested, it's still not visible to brew ...
rogerio@Rogerios-iMac ~ % brew info numpy
==> numpy: stable 1.26.4, HEAD
Package for scientific computing with Python
https://www.numpy.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/n/numpy.rb
License: BSD-3-Clause
==> Dependencies
Build: python-setuptools ✔, gcc ✔, libcython ✔, meson ✔, meson-python ✘, ninja ✔, python@3.11 ✔, python@3.12 ✔
Required: openblas ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
To run `f2py`, you may need to `brew install python@3.12`
==> Analytics
install: 73,692 (30 days), 173,127 (90 days), 389,282 (365 days)
install-on-request: 12,971 (30 days), 37,509 (90 days), 150,359 (365 days)
build-error: 27 (30 days)
rogerio@Rogerios-iMac ~ %
Yes, if you install a Python package via pip, the Homebrew package manager will not know about it. If you need the Homebrew package installed as a dependency for compiling some other package, you need to fix the meson-python Homebrew package. However, you are running an unsupported version of Homebrew...
TypeError: Parameter 'python': Expected type T.any(Pathname, String), got type Formulary::FormulaNamespaceAPIe850a65aec9bf3c6062278a00519b2d0dbe0aacf00851741dc120e93d0b3a4be::PythonAT311 with value #<Formula python@3.11 (stab...core/Formula/p/python@3.11.rb>
Caller: /Users/rogerio/Library/Caches/Homebrew/api-source/Homebrew/homebrew-core/ce9ebd98f5b322d1f6fb4b37721b4f34e76eb23f/Formula/meson-python.rb:42
Definition: /usr/local/Homebrew/Library/Homebrew/language/python.rb:23
And by extension also https://github.com/Homebrew/brew/blob/cd1f0409493c77e7964cf03a0fb1e93d03a83772/Library/Homebrew/language/python.rb#L22-L23
You'll have to ask the homebrew developers what the error message means since it's a homebrew error message, not a meson-python error message.
Thank you both @dnicolodi and @eli-schwartz. I'll look into issue on the homebrew side. Thanks again!
I have Python 3.12.2 and Meson 1.3.2 installed. When I attempt to install meson-python with brew, I get this error message ... any ideas as to how to resolve this? I'm on a Mac Intel running MacOSX 10.15.7 (Catalina). Thanks!