From b3f8654b4f533d2ebed4dc0c988caad6c5797eb0 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sat, 3 Jun 2023 23:28:26 -0500 Subject: [PATCH 1/2] [python-package] ensure 'build-python.sh' always reinstalls (fixes #5906) --- build-python.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-python.sh b/build-python.sh index 1dd8bc9fe966..234e87611507 100755 --- a/build-python.sh +++ b/build-python.sh @@ -333,6 +333,7 @@ if test "${INSTALL}" = true; then cd ../dist pip install \ ${PIP_INSTALL_ARGS} \ + --force-reinstall \ --find-links=. \ lightgbm cd ../ From bb7d9d68fd9966968addf84791d14c5b3c9336b9 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Fri, 9 Jun 2023 23:47:44 -0500 Subject: [PATCH 2/2] user --user --- .ci/test_windows.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/test_windows.ps1 b/.ci/test_windows.ps1 index 1e14cec3fc28..80e0bb220150 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 $? } }