From b859f7b17ed744e20a73a98cb6fded40862523fa Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sat, 10 Jun 2023 09:20:29 -0500 Subject: [PATCH] [python-package] ensure 'build-python.sh' always reinstalls (fixes #5906) (#5907) --- .ci/test_windows.ps1 | 4 ++-- build-python.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/test_windows.ps1 b/.ci/test_windows.ps1 index 1e14cec3f..80e0bb220 100644 --- a/.ci/test_windows.ps1 +++ b/.ci/test_windows.ps1 @@ -101,9 +101,9 @@ elseif ($env:TASK -eq "bdist") { } elseif (($env:APPVEYOR -eq "true") -and ($env:TASK -eq "python")) { cd $env:BUILD_SOURCESDIRECTORY if ($env:COMPILER -eq "MINGW") { - sh $env:BUILD_SOURCESDIRECTORY/build-python.sh install --mingw ; Check-Output $? + sh $env:BUILD_SOURCESDIRECTORY/build-python.sh install --user --mingw ; Check-Output $? } else { - sh $env:BUILD_SOURCESDIRECTORY/build-python.sh install ; Check-Output $? + sh $env:BUILD_SOURCESDIRECTORY/build-python.sh install --user; Check-Output $? } } diff --git a/build-python.sh b/build-python.sh index bcd8cb265..505d61e22 100755 --- a/build-python.sh +++ b/build-python.sh @@ -322,6 +322,7 @@ if test "${INSTALL}" = true; then cd ../dist pip install \ ${PIP_INSTALL_ARGS} \ + --force-reinstall \ --find-links=. \ lightgbm cd ../