Skip to content

Commit

Permalink
numpy: update formula for gnu+linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ipatch committed May 6, 2024
1 parent 1f456b8 commit f8e67da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Formula/[email protected]_py310.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class NumpyAT1264Py310 < Formula
depends_on "[email protected]" => [:build, :test]
depends_on "openblas" if OS.linux?

# NOTE: `brew update-python-resources` check for outdated py resources
fails_with gcc: "5"

# NOTE: `brew update-python-resources` check for outdated py resources
resource "meson-python" do
url "https://files.pythonhosted.org/packages/a2/3b/276b596824a0820987fdcc7721618453b4f9a8305fe20b611a00ac3f948e/meson_python-0.15.0.tar.gz"
sha256 "fddb73eecd49e89c1c41c87937cd89c2d0b65a1c63ba28238681d4bd9484d26f"
Expand Down Expand Up @@ -66,7 +66,7 @@ def install

# Prepend the installation path of mesonpy to PYTHONPATH
ENV.prepend_path "PYTHONPATH", libexec/"lib/python3.10/site-packages"
ENV.prepend_path "PATH", Formula["libcython"].opt_libexec/"bin"
ENV.prepend_path "PATH", Formula["cython"].opt_libexec/"bin"

# NOTE: https://stackoverflow.com/a/69869531/708807
if OS.mac?
Expand All @@ -79,7 +79,7 @@ def install
end

site_packages = Language::Python.site_packages(python3)
ENV.prepend_path "PYTHONPATH", Formula["libcython"].opt_libexec/site_packages
ENV.prepend_path "PYTHONPATH", Formula["cython"].opt_libexec/site_packages

if OS.mac?
ENV["NPY_LAPACK_ORDER"] = "accelerate"
Expand Down

0 comments on commit f8e67da

Please sign in to comment.