Skip to content

Commit

Permalink
bump homebrew formula template for Sapling to 3.11
Browse files Browse the repository at this point in the history
Summary:
Bumps the Formula template we use for our Github CI so that the built Homebrew bottles use Python 3.11.

We have sent a few diffs for fixing compatibility with Python 3.11 (D41447769 (456c5ee), D41447770 (3fc550c), D41640704 (92455e1), D41566930 (31951af)), so this should probably work.

Reviewed By: bolinfest

Differential Revision: D41846896

fbshipit-source-id: f507ed1a969b9b8fc03b73a5b9b08bf0976f32c4
  • Loading branch information
sggutier authored and facebook-github-bot committed Dec 8, 2022
1 parent 4b499bc commit 81685da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eden/scm/packaging/mac/brew_formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Sapling < Formula
version "%VERSION%"
sha256 "%SHA256%"

depends_on "python@3.8"
depends_on "python@3.11"
depends_on "node"
depends_on "[email protected]"
depends_on "gh"
Expand All @@ -30,9 +30,9 @@ def install
# variable. This is necessary since the installed OpenSSL library
# might not match the architecture of the destination one.
ENV["OPENSSL_DIR"] = "%TMPDIR%/[email protected]/1.1.1s"
ENV["PYTHON_SYS_EXECUTABLE"] = Formula["python@3.8"].opt_prefix/"bin/python3.8"
ENV["PYTHON"] = Formula["python@3.8"].opt_prefix/"bin/python3.8"
ENV["PYTHON3"] = Formula["python@3.8"].opt_prefix/"bin/python3.8"
ENV["PYTHON_SYS_EXECUTABLE"] = Formula["python@3.11"].opt_prefix/"bin/python3.11"
ENV["PYTHON"] = Formula["python@3.11"].opt_prefix/"bin/python3.11"
ENV["PYTHON3"] = Formula["python@3.11"].opt_prefix/"bin/python3.11"
ENV["SAPLING_VERSION"] = "%VERSION%"
ENV["CFLAGS"] = "--target=%TARGET%"
ENV["RUST_TARGET"] = "%TARGET%"
Expand Down

0 comments on commit 81685da

Please sign in to comment.