From d1eca7a83c8393220e6d53a44ab71504d3389473 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Mon, 2 Dec 2024 15:23:49 -0800 Subject: [PATCH] gz-math*: fix default argument to python_cmake_arg (#2904) Signed-off-by: Steve Peters --- Formula/gz-math7.rb | 2 +- Formula/gz-math8.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/gz-math7.rb b/Formula/gz-math7.rb index c4de7f9e8..1c4d150ca 100644 --- a/Formula/gz-math7.rb +++ b/Formula/gz-math7.rb @@ -44,7 +44,7 @@ def pythons .select { |f| f.name.match?(/^python@3\.\d+$/) } end - def python_cmake_arg(python = "python@3.13".to_formula) + def python_cmake_arg(python = Formula["python@3.13"]) "-DPython3_EXECUTABLE=#{python.opt_libexec}/bin/python" end diff --git a/Formula/gz-math8.rb b/Formula/gz-math8.rb index 327e1339a..ece7b078f 100644 --- a/Formula/gz-math8.rb +++ b/Formula/gz-math8.rb @@ -37,7 +37,7 @@ def pythons .select { |f| f.name.match?(/^python@3\.\d+$/) } end - def python_cmake_arg(python = "python@3.13".to_formula) + def python_cmake_arg(python = Formula["python@3.13"]) "-DPython3_EXECUTABLE=#{python.opt_libexec}/bin/python" end