Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
f6ecd4de
Unverified
Commit
f6ecd4de
authored
Apr 19, 2024
by
James Lamb
Committed by
GitHub
Apr 19, 2024
Browse files
[python-package] prevent build-python.sh from modifying already-installed dependencies (#6403)
parent
050a35f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
build-python.sh
build-python.sh
+4
-2
No files found.
build-python.sh
View file @
f6ecd4de
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment