Skip to content

Commit

Permalink
[python-package] prevent build-python.sh from modifying already-insta…
Browse files Browse the repository at this point in the history
…lled dependencies (#6403)
  • Loading branch information
jameslamb committed Apr 20, 2024
1 parent 050a35f commit f6ecd4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,13 @@ fi

if test "${INSTALL}" = true; then
echo "--- installing lightgbm ---"
# ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677
cd ../dist
# remove existing installation
# (useful when building the dev version multiple times, where the version number doesn't change)
pip uninstall --yes lightgbm
# ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677
pip install \
${PIP_INSTALL_ARGS} \
--force-reinstall \
--no-cache-dir \
--find-links=. \
lightgbm
Expand Down

0 comments on commit f6ecd4d

Please sign in to comment.