Skip to content

Commit

Permalink
node@16: fix python3 references.
Browse files Browse the repository at this point in the history
See Homebrew#108008.

Also, remove linux only gcc dependency. See Homebrew#110010.
  • Loading branch information
miles170 committed Sep 9, 2022
1 parent 2d385fd commit cda449d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/node@16.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class NodeAT16 < Formula
uses_from_macos "python", since: :catalina
uses_from_macos "zlib"

on_linux do
depends_on "gcc"
end

fails_with :clang do
build 1099
cause "Node requires Xcode CLT 11+"
Expand All @@ -46,8 +42,9 @@ class NodeAT16 < Formula
fails_with gcc: "5"

def install
python3 = "python3.10"
# make sure subprocesses spawned by make are using our Python 3
ENV["PYTHON"] = which("python3")
ENV["PYTHON"] = which(python3)

args = %W[
--prefix=#{prefix}
Expand All @@ -70,7 +67,7 @@ def install
--shared-cares-libpath=#{Formula["c-ares"].lib}
--openssl-use-def-ca-store
]
system "python3", "configure.py", *args
system python3, "configure.py", *args
system "make", "install"
end

Expand Down

0 comments on commit cda449d

Please sign in to comment.