-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Polars does not build on Apple M1/2 #10254
Comments
The problem is setting these flags only for the https://doc.rust-lang.org/cargo/reference/config.html:
I don't exactly like setting those PyO3 flags on the entire polars project on MacOS. |
I believe this is the culprit: We should probably remove that package from the default workspace, or configure it a bit differently. It's not just a problem on MacOS, it also blocks running Not 100% why we need the |
Actually, I managed to make it work as it is right now (without setting a flag on the entire workspace) by the alternative proposed by PyO3. I added a fn main() {
pyo3_build_config::add_extension_module_link_args();
} which sets the appropriate rustflags, only for that crate. I will make a pull request for this. |
@stinodego I will leave those decisions to you, perhaps you should make a new issue for this. I just want to make the smallest possible change to make polars compile out-of-the-box on MacOS right now. |
Right, I thought these were related but they're not! Thanks for the fix. |
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example (on an Apple M1/2)
Issue description
The error happens during linking
I believe the problem is related to PyO3/pyo3#1800. PyO3 says that on MacOS some extra linking options need to be set: https://pyo3.rs/v0.19.2/building_and_distribution#macos . Namely
They also say that this may be necessary
Expected behavior
I expect Polars to build out-of-the-box.
Installed versions
No features.
The text was updated successfully, but these errors were encountered: