Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Nov 21, 2024
1 parent 0015d67 commit b931b20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ops/pipeline/test-python-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ set -euox pipefail
brew install ninja

mkdir build
cd build
pushd build
# Set prefix, to use OpenMP library from Conda env
# See https://github.com/dmlc/xgboost/issues/7039#issuecomment-1025038228
# to learn why we don't use libomp from Homebrew.
cmake .. -GNinja -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DBUILD_DEPRECATED_CLI=ON
ninja
popd

cd python-package
python --version
Expand Down
3 changes: 2 additions & 1 deletion ops/pipeline/test-python-with-sysprefix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ set -euox pipefail
sudo apt-get update && sudo apt-get install -y ninja-build

mkdir build
cd build
pushd build
cmake .. -GNinja
ninja
popd

# Copy libxgboost.so to system prefix
cp -v lib/* "$(python -c 'import sys; print(sys.base_prefix)')/lib"
Expand Down

0 comments on commit b931b20

Please sign in to comment.