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
5989405c
Unverified
Commit
5989405c
authored
Apr 17, 2023
by
James Lamb
Committed by
GitHub
Apr 17, 2023
Browse files
[ci] put a temporary ceiling on pip (#5835)
parent
ffb29862
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
.ci/test.sh
.ci/test.sh
+6
-0
No files found.
.ci/test.sh
View file @
5989405c
...
...
@@ -184,6 +184,12 @@ fi
mkdir
$BUILD_DIRECTORY
/build
&&
cd
$BUILD_DIRECTORY
/build
# temporarily pin pip to versions that support 'pip install --install-option'
# ref: https://github.com/microsoft/LightGBM/issues/5061#issuecomment-1510642287
if
[[
$METHOD
==
"pip"
]]
;
then
pip
install
'pip<23.1'
fi
if
[[
$TASK
==
"gpu"
]]
;
then
sed
-i
'.bak'
's/std::string device_type = "cpu";/std::string device_type = "gpu";/'
$BUILD_DIRECTORY
/include/LightGBM/config.h
grep
-q
'std::string device_type = "gpu"'
$BUILD_DIRECTORY
/include/LightGBM/config.h
||
exit
-1
# make sure that changes were really done
...
...
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