-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Use macos-10.13 compatible libomp when building the wheels #19064
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
Conversation
I intentionally canceled the ARM64 builds on travis to spare credits as they are unrelated to this PR. |
Hum, the macos builds are still pending... And the following issue actions/runner-images#1256 seems to indicate that macos-10.15 is the oldest supported platform. Maybe we could still find a version of the libomp.dylib file that was built to be compatible with 10.13 (or even older) somewhere? |
Alternatively, this SO question https://stackoverflow.com/questions/6591988/best-practice-for-osx-10-x-backwards-compatability seems relevant but I can't find the documentation |
The homebrew doc states that 10.9-10.13 is supported on a best effort basis: |
cibuildwheel should automatically set |
I wonder if we can try to get the bottle built for high_sierra (10.13) and use that in wget https://homebrew.bintray.com/bottles/libomp-11.0.0.high_sierra.bottle.tar.gz
brew install libomp-11.0.0.high_sierra.bottle.tar.gz while keeping gihtub ci at |
Maybe we should install The version of the macos VM on Azure Pipelines is 10.14: https://github.com/MacPython/scikit-learn-wheels/blob/master/azure-pipelines.yml#L81 and the script set the deployment target to 10.9 explicitly: https://github.com/MacPython/scikit-learn-wheels/blob/master/azure/posix.yml#L52 libomp was installed from homebrew as well: https://github.com/MacPython/scikit-learn-wheels/blob/master/extra_functions.sh |
@thomasjpfan your trick seems to work. At least the build completes successfully, and I can install the resulting wheel and run the test on macos 11.1. I don't have an old macos handy unfortunately. |
Repeating #19063 (comment) here for visibility. I tested the fix (via this provided link) on Travis's |
@thomasjpfan @alfaro96 @jeremiedbb ok for merge on your side? |
Actually since high sierra is 10.13, maybe we should set the I don't think homebrew makes it possible to get |
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 @ogrisel!
LGTM (after @jeremiedbb suggestion is applied).
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
@thomasjpfan how did you find the URL of the high sierra (10.13) bottle for libomp? I am wondering if we can find a mavericks (10.9) version of the same package. |
I have checked the official |
The URLs are available here: https://formulae.brew.sh/api/formula/libomp.json. |
Ok thanks, let me try to set the deployment target to 10.13 then. |
Related: matthew-brett/delocate#56 |
From the logs of the CPython 3.8 macos build:
and later:
So it looks like it's working as expected: distutils is taking the |
I still do not understand why we did not face the problem when releasing 0.23.2. Maybe the default homebrew bottle for libomp was still compatible with 10.9 at the time. |
I tested the artifacts from the bbfed0c build on travis osx 10.13 here: thomasjpfan/sklearn_osx_travis_test#1 |
Thanks for testing @thomasjpfan. Shall we merge? |
…-learn#19064) Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
This fix was adapted by @hmaarrfk from scikit-learn/scikit-learn#19064 Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com>
This fix was adapted by @hmaarrfk from scikit-learn/scikit-learn#19064 Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com> Co-authored-by: Mark Harfouche <mark.harfouche@gmail.com>
Tentative fix for #19063.
macos-10.13 is still referenced here: https://github.com/actions/virtual-environments/tree/main/images/macos
but not referenced there anymore: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-software