Skip to content

Commit 9bb3195

Browse files
Copilotbytemain
andauthored
Simplify uv-build pip warning
Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/07e4e50a-f299-4a36-a8b8-405f0222677a Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
1 parent 6ddeed5 commit 9bb3195

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/util.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ local function ensureWindowsUvBuildPip(path)
589589
end
590590

591591
if not pathExists(path .. "\\Lib\\ensurepip\\__init__.py") then
592-
print("Warning: uv-build Python does not include ensurepip; skipping pip installation, so pip will not be available.")
592+
print("Warning: uv-build Python does not include ensurepip; pip will not be available.")
593593
return
594594
end
595595

@@ -604,9 +604,8 @@ local function ensureWindowsUvBuildPip(path)
604604
return
605605
end
606606

607-
local quotedBundledPath = shellQuote(path .. "\\Lib\\ensurepip\\_bundled")
608607
command = string.format("%s -E -s -m pip install --force-reinstall --no-index --find-links %s pip",
609-
shellQuote(pythonExe), quotedBundledPath)
608+
shellQuote(pythonExe), shellQuote(path .. "\\Lib\\ensurepip\\_bundled"))
610609
exitCode = os.execute(command)
611610
if not commandSucceeded(exitCode) then
612611
error("pip force-reinstall failed while creating pip scripts. Exit code: " .. tostring(exitCode))

0 commit comments

Comments
 (0)