Commit 76bda1e2 authored by Nikita Titov's avatar Nikita Titov Committed by James Lamb
Browse files

support Catalina (#2556)

parent 785e4778
...@@ -106,7 +106,7 @@ if [[ $TASK == "sdist" ]]; then ...@@ -106,7 +106,7 @@ if [[ $TASK == "sdist" ]]; then
elif [[ $TASK == "bdist" ]]; then elif [[ $TASK == "bdist" ]]; then
if [[ $OS_NAME == "macos" ]]; then if [[ $OS_NAME == "macos" ]]; then
cd $BUILD_DIRECTORY/python-package && python setup.py bdist_wheel --plat-name=macosx --universal || exit -1 cd $BUILD_DIRECTORY/python-package && python setup.py bdist_wheel --plat-name=macosx --universal || exit -1
mv dist/lightgbm-$LGB_VER-py2.py3-none-macosx.whl dist/lightgbm-$LGB_VER-py2.py3-none-macosx_10_8_x86_64.macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.macosx_10_14_x86_64.whl mv dist/lightgbm-$LGB_VER-py2.py3-none-macosx.whl dist/lightgbm-$LGB_VER-py2.py3-none-macosx_10_9_x86_64.macosx_10_10_x86_64.macosx_10_11_x86_64.macosx_10_12_x86_64.macosx_10_13_x86_64.macosx_10_14_x86_64.macosx_10_15_x86_64.whl
if [[ $AZURE == "true" ]]; then if [[ $AZURE == "true" ]]; then
cp dist/lightgbm-$LGB_VER-py2.py3-none-macosx*.whl $BUILD_ARTIFACTSTAGINGDIRECTORY cp dist/lightgbm-$LGB_VER-py2.py3-none-macosx*.whl $BUILD_ARTIFACTSTAGINGDIRECTORY
fi fi
......
...@@ -147,7 +147,7 @@ Build from GitHub ...@@ -147,7 +147,7 @@ Build from GitHub
git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build mkdir build ; cd build
# For Mojave (10.14) # For Mojave or newer (>=10.14)
cmake \ cmake \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include" \ -DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include" \
-DOpenMP_C_LIB_NAMES="omp" \ -DOpenMP_C_LIB_NAMES="omp" \
...@@ -449,7 +449,7 @@ Only **Apple Clang** version 8.1 or higher is supported. ...@@ -449,7 +449,7 @@ Only **Apple Clang** version 8.1 or higher is supported.
git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build mkdir build ; cd build
# For Mojave (10.14) # For Mojave or newer (>=10.14)
cmake \ cmake \
-DUSE_MPI=ON \ -DUSE_MPI=ON \
-DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include" \ -DOpenMP_C_FLAGS="-Xpreprocessor -fopenmp -I$(brew --prefix libomp)/include" \
...@@ -712,7 +712,7 @@ Only **Apple Clang** version 8.1 or higher is supported. ...@@ -712,7 +712,7 @@ Only **Apple Clang** version 8.1 or higher is supported.
git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM git clone --recursive https://github.com/microsoft/LightGBM ; cd LightGBM
mkdir build ; cd build mkdir build ; cd build
# For Mojave (10.14) # For Mojave or newer (>=10.14)
cmake \ cmake \
-DUSE_SWIG=ON \ -DUSE_SWIG=ON \
-DAPPLE_OUTPUT_DYLIB=ON \ -DAPPLE_OUTPUT_DYLIB=ON \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment