Update Library/Homebrew/language/python.rb
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
parent
9804e58ceb
commit
575592d7f9
@ -365,10 +365,12 @@ module Language
|
|||||||
def pip_install(targets, build_isolation: true)
|
def pip_install(targets, build_isolation: true)
|
||||||
targets = Array(targets)
|
targets = Array(targets)
|
||||||
targets.each do |t|
|
targets.each do |t|
|
||||||
if t.is_a?(Resource) && t.url&.end_with?("-none-any.whl")
|
if t.is_a?(Resource)
|
||||||
t.stage { do_install(Pathname.pwd/t.downloader.basename, build_isolation:) }
|
t.stage do
|
||||||
elsif t.is_a?(Resource)
|
target = Pathname.pwd
|
||||||
t.stage { do_install(Pathname.pwd, build_isolation:) }
|
target /= t.downloader.basename if t.url&.end_with?("-none-any.whl")
|
||||||
|
do_install(target, build_isolation:)
|
||||||
|
end
|
||||||
else
|
else
|
||||||
t = t.lines.map(&:strip) if t.is_a?(String) && t.include?("\n")
|
t = t.lines.map(&:strip) if t.is_a?(String) && t.include?("\n")
|
||||||
do_install(t, build_isolation:)
|
do_install(t, build_isolation:)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user