Skip to content

Commit 7f16202

Browse files
authored
woob: fix python3 references (Homebrew#109784)
See Homebrew#108008
1 parent 6f85f22 commit 7f16202

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Formula/woob.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,20 @@ class Woob < Formula
101101
sha256 "879ba4d1e89654d9769ce13121e0f94310ea32e8d2f8cf587b77c08bbcdb30d6"
102102
end
103103

104+
def python3
105+
"python3.10"
106+
end
107+
104108
def install
105109
virtualenv_install_with_resources
106110

107-
site_packages = Language::Python.site_packages("python3")
111+
site_packages = Language::Python.site_packages(python3)
108112
pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n"
109113
(prefix/site_packages/"homebrew-woob.pth").write pth_contents
110114
end
111115

112116
test do
113117
system bin/"woob", "config", "modules"
114-
system Formula["python@3.10"].opt_bin/"python3", "-c", "import woob"
118+
system Formula["python@3.10"].opt_bin/python3, "-c", "import woob"
115119
end
116120
end

0 commit comments

Comments
 (0)