Skip to content

Commit

Permalink
[ci] ask pip to always install local artifact but not download packag…
Browse files Browse the repository at this point in the history
…e from PyPI (#6574)
  • Loading branch information
StrikerRUS authored Jul 29, 2024
1 parent 3f7e608 commit e52d8fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e52d8fb

Please sign in to comment.