/
githubmirror
/
scikit-learn
Обзор
Документация
Войти
/
githubmirror
/
scikit-learn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.5.0
build_tools/shared.sh
35 строк
1 KB
Thomas J. Fan
CI Adds coverage to docker jobs on Azure (#26027)
02 апр 2023, 12:06
Не верифицирован
02 апр 2023, 12:06
097c368
Код
Авторство
О чём код?
get_dep() { package="$1" version="$2" if [[ "$version" == "none" ]]; then # do not install with none echo elif [[ "${version%%[^0-9.]*}" ]]; then # version number is explicitly passed echo "$package==$version" elif [[ "$version" == "latest" ]]; then # use latest echo "$package" elif [[ "$version" == "min" ]]; then echo "$package==$(python sklearn/_min_dependencies.py $package)" fi } show_installed_libraries(){ # use conda list when inside a conda environment. conda list shows more # info than pip list, e.g. whether OpenBLAS or MKL is installed as well as # the version of OpenBLAS or MKL if [[ -n "$CONDA_PREFIX" ]]; then conda list else python -m pip list fi } activate_environment() { if [[ "$DISTRIB" =~ ^conda.* ]]; then source activate $VIRTUALENV elif [[ "$DISTRIB" == "ubuntu" || "$DISTRIB" == "debian-32" || "$DISTRIB" == "pip-nogil" ]]; then source $VIRTUALENV/bin/activate fi }