Merge pull request #17897 from Homebrew/ww/std-pip-args-allow-wheel

This commit is contained in:
William Woodruff 2024-07-30 11:49:17 -04:00 committed by GitHub
commit 6e9947d570
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,11 @@ module Language
targets = Array(targets) targets = Array(targets)
targets.each do |t| targets.each do |t|
if t.is_a?(Resource) if t.is_a?(Resource)
t.stage { do_install(Pathname.pwd, build_isolation:) } t.stage do
target = Pathname.pwd
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:)