Rewrite setup.py. (#5271)

The setup.py is rewritten.  This new script uses only Python code and provide customized
implementation of setuptools commands.  This way users can run most of setuptools commands
just like any other Python libraries.

* Remove setup_pip.py
* Remove soft links.
* Define customized commands.
* Remove shell script.
* Remove makefile script.
* Update the doc for building from source.
This commit is contained in:
Jiaming Yuan
2020-02-04 13:35:42 +08:00
committed by GitHub
parent e4b74c4d22
commit 595a00466d
16 changed files with 502 additions and 358 deletions

View File

@@ -6,12 +6,12 @@ source $HOME/miniconda/bin/activate
if [ ${TASK} == "python_sdist_test" ]; then
set -e
make pippack
conda activate python3
python --version
conda install numpy scipy
make pippack
python -m pip install xgboost-*.tar.gz -v --user
python -c 'import xgboost' || exit -1
fi