Unverified Commit e52d8fb8 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] ask pip to always install local artifact but not download package from PyPI (#6574)

parent 3f7e6081
...@@ -359,14 +359,19 @@ fi ...@@ -359,14 +359,19 @@ fi
if test "${INSTALL}" = true; then if test "${INSTALL}" = true; then
echo "--- installing lightgbm ---" echo "--- installing lightgbm ---"
cd ../dist cd ../dist
if test "${BUILD_WHEEL}" = true; then
PACKAGE_NAME="lightgbm*.whl"
else
PACKAGE_NAME="lightgbm*.tar.gz"
fi
# ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677 # ref for use of '--find-links': https://stackoverflow.com/a/52481267/3986677
pip install \ pip install \
${PIP_INSTALL_ARGS} \ ${PIP_INSTALL_ARGS} \
--ignore-installed \ --force-reinstall \
--no-cache-dir \ --no-cache-dir \
--no-deps \ --no-deps \
--find-links=. \ --find-links=. \
lightgbm ${PACKAGE_NAME}
cd ../ cd ../
fi fi
......
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