Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate GHC to Python 3.9 #62691

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Formula/ghc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Ghc < Formula
url "https://downloads.haskell.org/~ghc/8.10.1/ghc-8.10.1-src.tar.xz"
sha256 "4e3b07f83a266b3198310f19f71e371ebce97c769b14f0d688f4cbf2a2a1edf5"
license "BSD-3-Clause"
revision 1
revision 2

livecheck do
url :stable
Expand All @@ -33,7 +33,7 @@ class Ghc < Formula
end
end

depends_on "python@3.8" => :build
depends_on "python@3.9" => :build
depends_on "sphinx-doc" => :build

resource "gmp" do
Expand Down Expand Up @@ -65,7 +65,7 @@ def install

ENV["CC"] = ENV.cc
ENV["LD"] = "ld"
ENV["PYTHON"] = Formula["python@3.8"].opt_bin/"python3"
ENV["PYTHON"] = Formula["python@3.9"].opt_bin/"python3"

# Build a static gmp rather than in-tree gmp, otherwise all ghc-compiled
# executables link to Homebrew's GMP.
Expand Down
6 changes: 3 additions & 3 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class GhcAT86 < Formula
url "https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-src.tar.xz"
sha256 "4d4aa1e96f4001b934ac6193ab09af5d6172f41f5a5d39d8e43393b9aafee361"
license "BSD-3-Clause"
revision 1
revision 2

bottle do
rebuild 1
Expand All @@ -19,7 +19,7 @@ class GhcAT86 < Formula

keg_only :versioned_formula

depends_on "python@3.8" => :build
depends_on "python@3.9" => :build
depends_on "sphinx-doc" => :build

resource "gmp" do
Expand Down Expand Up @@ -49,7 +49,7 @@ class GhcAT86 < Formula
def install
ENV["CC"] = ENV.cc
ENV["LD"] = "ld"
ENV["PYTHON"] = Formula["python@3.8"].opt_bin/"python3"
ENV["PYTHON"] = Formula["python@3.9"].opt_bin/"python3"

# Build a static gmp rather than in-tree gmp, otherwise all ghc-compiled
# executables link to Homebrew's GMP.
Expand Down
3 changes: 2 additions & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class GhcAT88 < Formula
url "https://downloads.haskell.org/~ghc/8.8.4/ghc-8.8.4-src.tar.xz"
sha256 "f0505e38b2235ff9f1090b51f44d6c8efd371068e5a6bb42a2a6d8b67b5ffc2d"
license "BSD-3-Clause"
revision 1

bottle do
sha256 "04b5d947271af5cc9a6dda589fa29f28d53b34af20545e3d43ded0744a0daa79" => :catalina
Expand All @@ -17,7 +18,7 @@ class GhcAT88 < Formula

keg_only :versioned_formula

depends_on "python@3.8" => :build
depends_on "python@3.9" => :build
depends_on "sphinx-doc" => :build

resource "gmp" do
Expand Down