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

[ci] put a temporary ceiling on pip (#5835)

parent ffb29862
...@@ -184,6 +184,12 @@ fi ...@@ -184,6 +184,12 @@ fi
mkdir $BUILD_DIRECTORY/build && cd $BUILD_DIRECTORY/build 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 if [[ $TASK == "gpu" ]]; then
sed -i'.bak' 's/std::string device_type = "cpu";/std::string device_type = "gpu";/' $BUILD_DIRECTORY/include/LightGBM/config.h 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 grep -q 'std::string device_type = "gpu"' $BUILD_DIRECTORY/include/LightGBM/config.h || exit -1 # make sure that changes were really done
......
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