-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Build Python wheels for MacOS (x86_64 and arm64) #7621
Conversation
fi | ||
|
||
python -m pip install cibuildwheel | ||
python -m cibuildwheel python-package --output-dir wheelhouse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command calls python.py bdist_wheel
to generate the wheel.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this!
Closes #7039
Do we want to back port to 1.5.2?
Could you please document the build process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks cool!
- Rewrite `ParallelFor` using OpenMP constructs. - Link Treelite libs with OpenMP runtime lib. - On MacOS, bundle libomp (OpenMP runtime) with Treelite. This is to ensure that Treelite does not randomly crash. dmlc/xgboost#7621 for full explanation. - Build PyPI wheel targeting Apple Silicon. Closes #350 - On Linux, run `auditwheel repair` command to vendor (bundle) `libgomp.so` inside the Python wheel. This is required by the Python packaging standard.
brew instal libomp
prior to installing XGBoost.This PR is inspired by scikit-learn/scikit-learn#22109.
Closes #7039