File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,17 @@ def install
3232
3333 python3 = Formula [ "python@3.13" ]
3434 python_bin = if ( python3 . opt_bin /"python3" ) . exist?
35- python3 . opt_bin /"python3"
36- elsif ( python3 . installed_prefix /"bin/python3" ) . exist?
37- python3 . installed_prefix /"bin/python3"
38- else
39- prefix = `brew --prefix python@3.13` . strip
40- Pathname . new ( "#{ prefix } /bin/python3" ) if prefix && !prefix . empty?
41- end
42-
43- odie "Python 3.13 not found. Please ensure python@3.13 is installed: brew install python@3.13" unless python_bin &.exist?
35+ python3 . opt_bin /"python3"
36+ elsif ( python3 . installed_prefix /"bin/python3" ) . exist?
37+ python3 . installed_prefix /"bin/python3"
38+ else
39+ prefix = `brew --prefix python@3.13` . strip
40+ Pathname . new ( "#{ prefix } /bin/python3" ) if prefix . present?
41+ end
42+
43+ unless python_bin &.exist?
44+ odie "Python 3.13 not found. Please ensure python@3.13 is installed: brew install python@3.13"
45+ end
4446
4547 ENV [ "PYTHON" ] = python_bin . to_s
4648 system "meson" , "setup" , "build" , *std_meson_args
You can’t perform that action at this time.
0 commit comments