Skip to content

Commit 3baa806

Browse files
authored
Merge pull request #3770 from mrmundt/win-pip-stupid
Fix windows/python/platformdirs issue in GHA
2 parents 38ff2e1 + 56212b0 commit 3baa806

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test_branches.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,10 @@ jobs:
375375
echo ""
376376
echo "*** Install Pyomo dependencies ***"
377377
# For windows, cannot use newer setuptools because of APPSI compilation issues
378+
# There seems to be some specific problem with platformdirs 4.5.0
379+
# on win 3.13/3.14 as of 2025-10-23
378380
if test "${{matrix.TARGET}}" == 'win'; then
379-
CONDA_DEPENDENCIES="$CONDA_DEPENDENCIES setuptools<74.0.0"
381+
CONDA_DEPENDENCIES="$CONDA_DEPENDENCIES setuptools<74.0.0 platformdirs!=4.5.0"
380382
fi
381383
# Note: this will fail the build if any installation fails (or
382384
# possibly if it outputs messages to stderr)

.github/workflows/test_pr_and_main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@ jobs:
427427
echo ""
428428
echo "*** Install Pyomo dependencies ***"
429429
# For windows, cannot use newer setuptools because of APPSI compilation issues
430+
# There seems to be some specific problem with platformdirs 4.5.0
431+
# on win 3.13/3.14 as of 2025-10-23
430432
if test "${{matrix.TARGET}}" == 'win'; then
431-
CONDA_DEPENDENCIES="$CONDA_DEPENDENCIES setuptools<74.0.0"
433+
CONDA_DEPENDENCIES="$CONDA_DEPENDENCIES setuptools<74.0.0 platformdirs!=4.5.0"
432434
fi
433435
# Note: this will fail the build if any installation fails (or
434436
# possibly if it outputs messages to stderr)

0 commit comments

Comments
 (0)