PyPI (pip installation) setup for 0.6 code (#1445)

* force gcc-5 or clang-omp for Mac OS, prepare for pip pack

* add sklearn dep, make -j4

* finalize PyPI submission

* revert to Xcode clang for passing build #1468

* force to clang, try to solve cmake travis error

* remove sklearn dependency
This commit is contained in:
Hongliang Liu
2016-08-10 05:45:56 -07:00
committed by Yuan (Terry) Tang
parent 62e5b6b8b3
commit c5a2b79558
6 changed files with 54 additions and 11 deletions

View File

@@ -15,14 +15,14 @@ oldpath=`pwd`
cd ./xgboost/
#remove the pre-compiled .so and trigger the system's on-the-fly compiling
make clean
if make python; then
if make lib/libxgboost.so -j4; then
echo "Successfully build multi-thread xgboost"
else
echo "-----------------------------"
echo "Building multi-thread xgboost failed"
echo "Start to build single-thread xgboost"
make clean
make python no_omp=1
make lib/libxgboost.so -j4 no_omp=1
echo "Successfully build single-thread xgboost"
echo "If you want multi-threaded version"
echo "See additional instructions in doc/build.md"