Skip to content

Commit

Permalink
Merge pull request #120 from delphinus/fix/python-313
Browse files Browse the repository at this point in the history
fix: update Python to use fonttools and fontforge
  • Loading branch information
delphinus authored Oct 16, 2024
2 parents 4e062f1 + 0708c9f commit ff229df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sfmono-square.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SfmonoSquare < Formula

depends_on "fontforge" => :build
depends_on "fonttools" => :build
depends_on "python@3.12" => :build
depends_on "python@3.13" => :build
depends_on "pod2man" => :build

resource "migu1mfonts" do
Expand Down Expand Up @@ -58,11 +58,11 @@ def _compile
# See https://github.com/delphinus/homebrew-sfmono-square/issues/9
# ENV["MIGU1M_SCALE"] = "82"

fontforge_lib = Formula["fontforge"].libexec / "lib/python3.12/site-packages"
fonttools_lib = Formula["fonttools"].libexec / "lib/python3.12/site-packages"
python312 = Formula["python@3.12"].bin / "python3.12"
fontforge_lib = Formula["fontforge"].libexec / "lib/python3.13/site-packages"
fonttools_lib = Formula["fonttools"].libexec / "lib/python3.13/site-packages"
python313 = Formula["python@3.13"].bin / "python3.13"

system python312, "-c", <<~PYTHON
system python313, "-c", <<~PYTHON
import sys
sys.path.append('#{buildpath / 'src'}')
sys.path.append('#{fontforge_lib}')
Expand Down

0 comments on commit ff229df

Please sign in to comment.