Skip to content
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

Fix building for musl libc (alpine linux) #80

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

alex
Copy link
Contributor

@alex alex commented Aug 17, 2020

This fixes PyO3/pyo3#1109

I tried just include this flag in args, but for some reason that didn't work. Passing in the env does work.

@kngwyu
Copy link
Member

kngwyu commented Aug 17, 2020

Thanks!

As I commented on PyO3/pyo3#1109, it's better if we have any comment that explains why this works for musl. A short description or just a URL is OK, though.

@alex
Copy link
Contributor Author

alex commented Aug 17, 2020

@davidhewitt
Copy link
Member

Probably a comment referring to rust-lang/rust#59302 is enough?

Also, please add a CHANGELOG entry. I only just remembered to update the CHANGELOG for the 0.11.2 release, so you might want to rebase on master and then add an Unreleased section at the top.

@alex
Copy link
Contributor Author

alex commented Aug 17, 2020

@davidhewitt done! thanks much.

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much, just a few final nits from me!

setuptools_rust/build.py Show resolved Hide resolved
setuptools_rust/build.py Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
setuptools_rust/build.py Show resolved Hide resolved
@davidhewitt
Copy link
Member

LGTM. Thanks for the sleuthing w.r.t RUSTFLAGS. If it's okay, I'll wait for merging just incase anyone else has any extra comments e.g. from the maturin discussion.

@alex
Copy link
Contributor Author

alex commented Aug 17, 2020

Sure, that's fine.

@alex
Copy link
Contributor Author

alex commented Aug 20, 2020

No particular urgency, but how long do you want to wait for feedback :-)

@davidhewitt
Copy link
Member

I was hoping to wait for the maturin discussion to move forward, but as nobody seems to have responded on there let's merge this to keep things moving forward. I guess you'll be wanting this as a patch release?

@davidhewitt davidhewitt merged commit d931ccd into PyO3:master Aug 24, 2020
@alex alex deleted the musl-build branch August 24, 2020 21:44
@alex
Copy link
Contributor Author

alex commented Aug 24, 2020

Thanks! And yeah, unfortuntely there's no way to do point pep517 at a VCS dependency :-/

@davidhewitt
Copy link
Member

0.11.3 released. Thanks again for all your recent fixes to this project!

@alex
Copy link
Contributor Author

alex commented Aug 24, 2020 via email

@davidhewitt
Copy link
Member

👍 btw when cryptography releases with some Rust code in it do feel free to open a PR to add it to the pyo3 README section listing example projects!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyO3 doesn't build on musl targets (Alpine linux)
3 participants