Skip to content

Commit 166fae0

Browse files
committed
Fix "cmake install" failure
Downgrade setuptools to 80.2, where `command.easy_install` is still not dummy (pypa/setuptools#917). The `easy_install.install_wrapper_scripts()` is used by windows build: https://github.com/OSGeo/gdal/blob/e0292a9/swig/python/setup.py.in#L163
1 parent a8667c5 commit 166fae0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ runs:
254254
shell: pwsh
255255
run: |
256256
# Prerequisites: numpy is needed to build gdal_array
257-
python -m pip install -U pip setuptools wheel numpy
257+
# HACK: After setuptools 80.3, the `easy_install.install_wrapper_scripts()` is removed
258+
# from `command.easy_install`, see https://github.com/pypa/setuptools/issues/917
259+
python -m pip install -U pip "setuptools<80.3" wheel numpy
258260
259261
$BUILD_DIR = New-Item -EA SilentlyContinue -ItemType directory ${{ inputs.base-dir }}/build
260262
$INSTALL_DIR = New-Item -EA SilentlyContinue -ItemType directory ${{ inputs.base-dir }}/install-gdal

0 commit comments

Comments
 (0)