From e52d8fb880671aea1bb84cf5416bfd71257f4fec Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Mon, 29 Jul 2024 17:45:55 +0300 Subject: [PATCH] [ci] ask pip to always install local artifact but not download package from PyPI (#6574) --- build-python.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build-python.sh b/build-python.sh index afb4667ac..de71c1f6a 100755 --- a/build-python.sh +++ b/build-python.sh @@ -359,14 +359,19 @@ fi if test "${INSTALL}" = true; then echo "--- installing lightgbm ---" cd ../dist + if test "${BUILD_WHEEL}" = true; then + PACKAGE_NAME="lightgbm*.whl" + else + PACKAGE_NAME="lightgbm*.tar.gz" + fi # ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677 pip install \ ${PIP_INSTALL_ARGS} \ - --ignore-installed \ + --force-reinstall \ --no-cache-dir \ --no-deps \ --find-links=. \ - lightgbm + ${PACKAGE_NAME} cd ../ fi