File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -101,16 +101,20 @@ class Woob < Formula
101
101
sha256 "879ba4d1e89654d9769ce13121e0f94310ea32e8d2f8cf587b77c08bbcdb30d6"
102
102
end
103
103
104
+ def python3
105
+ "python3.10"
106
+ end
107
+
104
108
def install
105
109
virtualenv_install_with_resources
106
110
107
- site_packages = Language ::Python . site_packages ( " python3" )
111
+ site_packages = Language ::Python . site_packages ( python3 )
108
112
pth_contents = "import site; site.addsitedir('#{ libexec /site_packages } ')\n "
109
113
( prefix /site_packages /"homebrew-woob.pth" ) . write pth_contents
110
114
end
111
115
112
116
test do
113
117
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"
115
119
end
116
120
end
You can’t perform that action at this time.
0 commit comments