Skip to content

Commit

Permalink
fix casacore on macos-14
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Nov 13, 2024
1 parent 74f5083 commit 4f97bd7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/casacore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ class Casacore < Formula
depends_on "wcslib"

if build.with?("python")
depends_on "python"
# if this line changes https://github.com/Homebrew/homebrew-core/blob/914f3d69b312903688270b42730b37a5f02a241a/Formula/b/boost-python3.rb#L26C14-L26C27
# then this will break.
# if you change this line, you should also change the line below:
# python_exe = which("python3.12")
depends_on "[email protected]"
depends_on "numpy"
depends_on "boost-python3"
end
Expand All @@ -42,7 +46,7 @@ def install
# cmake_args << "-DBoost_NO_BOOST_CMAKE=ON"
cmake_args << "-DDATA_DIR=#{casacore_data}"
if build.with?("python")
python_exe = which("python3") || which("python")
python_exe = which("python3.12")
cmake_args << "-DPython3_EXECUTABLE=#{python_exe}"
numpy_include = `#{python_exe} -c "import numpy; print(numpy.get_include())"`.strip
cmake_args << "-DPython3_NumPy_INCLUDE_DIR=#{numpy_include}"
Expand Down

0 comments on commit 4f97bd7

Please sign in to comment.