Skip to content

Commit 45979d2

Browse files
committed
Try more things
1 parent b60673e commit 45979d2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test_pr_and_main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)