File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -323,10 +323,21 @@ jobs:
323323 which python
324324 python --version
325325 if test "${{matrix.TARGET}}" = 'win'; then
326+ echo $USERPROFILE
327+ # Make platformdirs use env vars instead of registry
328+ export PLATFORMDIRS_PREFER_ENV=1
329+ # Provide the dirs platformdirs/pip expect
326330 export PROGRAMDATA='C:\ProgramData'
327331 export ALLUSERSPROFILE='C:\ProgramData'
332+ export APPDATA="$USERPROFILE\AppData\Roaming"
333+ export LOCALAPPDATA="$USERPROFILE\AppData\Local"
334+ # Ensure they exist (best effort)
335+ mkdir -p "$APPDATA/pip" "$LOCALAPPDATA/pip" || true
336+ # Point pip at an empty config so it doesn't enumerate site configs
328337 export PIP_CONFIG_FILE="$RUNNER_TEMP/pip-empty.ini"
329338 : > "$PIP_CONFIG_FILE"
339+ # Avoid exercises that trigger config discovery
340+ export PIP_DISABLE_PIP_VERSION_CHECK=1
330341 fi
331342 # On 3.14, we need setuptools so we can run Pyomo's setup.py
332343 conda install setuptools
You can’t perform that action at this time.
0 commit comments