Unverified Commit f6ecd4de authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[python-package] prevent build-python.sh from modifying already-installed dependencies (#6403)

parent 050a35f0
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment