зеркало из https://github.com/microsoft/LightGBM.git
[ci] ask pip to always install local artifact but not download package from PyPI (#6574)
This commit is contained in:
Родитель
3f7e608127
Коммит
e52d8fb880
|
@ -359,14 +359,19 @@ fi
|
|||
if test "${INSTALL}" = true; then
|
||||
echo "--- installing lightgbm ---"
|
||||
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
|
||||
pip install \
|
||||
${PIP_INSTALL_ARGS} \
|
||||
--ignore-installed \
|
||||
--force-reinstall \
|
||||
--no-cache-dir \
|
||||
--no-deps \
|
||||
--find-links=. \
|
||||
lightgbm
|
||||
${PACKAGE_NAME}
|
||||
cd ../
|
||||
fi
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче