Skip to content

Commit fa9eff7

Browse files
Copilotbytemain
andauthored
Document Windows pip shim format
Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/fab67593-0eb0-42b0-b32e-e6f9fe3bf105 Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
1 parent 1d0d8ca commit fa9eff7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/util.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ local REQUEST_HEADERS = {
2222
}
2323

2424
-- pip.cmd lives under Scripts, so %~dp0..\python.exe resolves to the install root's python.exe.
25+
-- Windows command scripts conventionally use CRLF line endings.
2526
local WINDOWS_PIP_SHIM_CONTENT = "@echo off\r\n\"%~dp0..\\python.exe\" -m pip %*\r\n"
2627

2728
local UV_BUILD_ENV = "VFOX_PYTHON_USE_UV_BUILD"
@@ -593,6 +594,7 @@ end
593594
local function createWindowsPipShim(scriptsPath)
594595
ensureWindowsDirectory(scriptsPath)
595596

597+
-- Match the common pip script entry points created by ensurepip.
596598
local shims = { "pip.cmd", "pip3.cmd" }
597599
for _, shim in ipairs(shims) do
598600
writeWindowsFile(scriptsPath .. "\\" .. shim, WINDOWS_PIP_SHIM_CONTENT)

0 commit comments

Comments
 (0)