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 @@ -49,11 +49,15 @@ class Pipenv < Formula
49
49
sha256 "418ee935c36152f8f153c79824bb93eaf6f0f7984bae31d3f48f350b9183501a"
50
50
end
51
51
52
+ def python3
53
+ "python3.10"
54
+ end
55
+
52
56
def install
53
57
# Using the virtualenv DSL here because the alternative of using
54
58
# write_env_script to set a PYTHONPATH breaks things.
55
59
# https://github.com/Homebrew/homebrew-core/pull/19060#issuecomment-338397417
56
- venv = virtualenv_create ( libexec , " python3" )
60
+ venv = virtualenv_create ( libexec , python3 )
57
61
venv . pip_install resources
58
62
venv . pip_install buildpath
59
63
@@ -87,7 +91,7 @@ def post_install
87
91
test do
88
92
ENV [ "LC_ALL" ] = "en_US.UTF-8"
89
93
assert_match "Commands" , shell_output ( "#{ bin } /pipenv" )
90
- system "#{ bin } /pipenv" , "--python" , Formula [ "python@3.10" ] . opt_bin / " python3"
94
+ system "#{ bin } /pipenv" , "--python" , which ( python3 )
91
95
system "#{ bin } /pipenv" , "install" , "requests"
92
96
system "#{ bin } /pipenv" , "install" , "boto3"
93
97
assert_predicate testpath /"Pipfile" , :exist?
You can’t perform that action at this time.
0 commit comments