Skip to content

Commit

Permalink
[ci] put a temporary ceiling on pip (#5835)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Apr 17, 2023
1 parent ffb2986 commit 5989405
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5989405

Please sign in to comment.