specialize wheel resource handling

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2024-07-30 08:38:58 -04:00
parent 3b9bec8c95
commit c6ba4844b3
No known key found for this signature in database

View File

@ -365,7 +365,9 @@ module Language
def pip_install(targets, build_isolation: true)
targets = Array(targets)
targets.each do |t|
if t.is_a?(Resource)
if t.is_a?(Resource) && t.url.end_with?("-none-any.whl")
t.stage { do_install(Pathname.pwd/t.downloader.basename, build_isolation:) }
elsif t.is_a?(Resource)
t.stage { do_install(Pathname.pwd, build_isolation:) }
else
t = t.lines.map(&:strip) if t.is_a?(String) && t.include?("\n")