You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Modify ENV directly instead of passing hash to system
The error was:
TypeError: Parameter 'cmd': Expected type T.any(Pathname, String),
got type Hash with value {"CC" => "clang", ...}
Homebrew's type-checked system() method doesn't accept a hash as the
first argument. Instead, we must modify ENV directly:
Changed from:
cantera_env = { "CC" => ENV.cc, ... }
system cantera_env, venv/"bin/python", ...
To:
ENV["CC"] = ENV.cc
ENV["CXX"] = ENV.cxx
ENV["CFLAGS"] = "..."
ENV["CXXFLAGS"] = "..."
system venv/"bin/python", ...
This is the standard Homebrew pattern for setting environment variables
before running subprocesses.
0 commit comments