* Make pip install xgboost*.tar.gz work by fixing build-python.sh * Simplify install doc * Add test * Install Miniconda for Linux target too * Build XGBoost only once in sdist * Try importing xgboost after installation * Don't set PYTHONPATH env var for sdist test
22 lines
795 B
Bash
Executable File
22 lines
795 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ${TASK} == "python_test" ] || [ ${TASK} == "python_sdist_test" ]; then
|
|
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
wget -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
|
|
else
|
|
wget -O conda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
|
fi
|
|
bash conda.sh -b -p $HOME/miniconda
|
|
source $HOME/miniconda/bin/activate
|
|
hash -r
|
|
conda config --set always_yes yes --set changeps1 no
|
|
conda update -q conda
|
|
# Useful for debugging any issues with conda
|
|
conda info -a
|
|
conda create -n python3 python=3.7
|
|
fi
|
|
|
|
if [ ${TASK} == "cmake_test" ] && [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
sudo softwareupdate -i "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.3"
|
|
fi
|