Skip to content

Commit 19b8e92

Browse files
Copilotbytemain
andauthored
Remove Windows pip output redirect
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 f4ce68d commit 19b8e92

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/util.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ end
1414
local version_vault_url = "https://vault.vfox.dev/python/pyenv"
1515
local uv_build_vault_url = "https://vault.vfox.dev/python/uv-build"
1616
local UV_BUILD_GITHUB_RELEASE_PATTERN = "/releases/download/([^/]+)/([^/]+)$"
17-
local windows_null_redirect = "> NUL"
1817

1918
-- request headers
2019
local REQUEST_HEADERS = {
@@ -592,8 +591,7 @@ local function ensureWindowsUvBuildPip(path)
592591
end
593592

594593
print("Installing pip...")
595-
local command = string.format("%s -E -s -m ensurepip -U --default-pip %s",
596-
shellQuote(pythonExe), windows_null_redirect)
594+
local command = string.format("%s -E -s -m ensurepip -U --default-pip", shellQuote(pythonExe))
597595
local exitCode = os.execute(command)
598596
if not commandSucceeded(exitCode) then
599597
error("ensurepip failed while installing pip. exit " .. tostring(exitCode))
@@ -604,8 +602,8 @@ local function ensureWindowsUvBuildPip(path)
604602
end
605603

606604
local quotedBundledPath = shellQuote(path .. "\\Lib\\ensurepip\\_bundled")
607-
command = string.format("%s -E -s -m pip install --force-reinstall --no-index --find-links %s pip %s",
608-
shellQuote(pythonExe), quotedBundledPath, windows_null_redirect)
605+
command = string.format("%s -E -s -m pip install --force-reinstall --no-index --find-links %s pip",
606+
shellQuote(pythonExe), quotedBundledPath)
609607
exitCode = os.execute(command)
610608
if not commandSucceeded(exitCode) then
611609
error("pip force-reinstall failed while creating pip scripts. exit " .. tostring(exitCode))

0 commit comments

Comments
 (0)