-
Notifications
You must be signed in to change notification settings - Fork 106
Attempt to correctly handle 32-bit Python on 64-bit windows #77
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
Ok, confirmed that without this patch I get an error about non-matching. And with this patch I get a build .pyd (well, first I got an error that I needed to rustup add the i686 target). |
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.
Thanks for this! If you've got a travis configuration to hand, it would be nice to run the tests with this 32-bit windows configuration.
(Alternatively, if you've only got a Github actions configuration to hand, then I was thinking about migrating to actions anyway?)
Co-authored-by: David Hewitt <[email protected]>
Yeah, I don't have a travis windows configuration handy -- I did my testing in a manual EC2 VM. If you're porting to Github Actions, you should be able to peanutbutter+chocolate the current tests with: https://github.com/pyca/cryptography/blob/master/.github/workflows/ci.yml#L55 to get a 32-bit python on a 64-bit windows. |
Sorry, just realized I may have misread. Were you asking that I add the GHA build to this PR? |
I'm working on the GHA build on this branch: master...davidhewitt:github-actions At the moment I'm encountering an interesting CI failure 😅 |
@davidhewitt I think your problem is that writing I bet if you used a toml lib at (I suspect this means tomlgen's |
Haha yeah this is exactly the conclusion I've come to! 👍 |
Hmm, so that changelog is slightly off I think. It's "fixed building for 32-bit Pythons on 64-bit Windows" |
Thanks, I've tweaked that with a couple extra commits (oops); I'll squash it all anyway! Having gotten most of the way with the Github Actions branch, it looks like pypy3 defaults to 32-bit anyway, so I'm going to merge this first and then sort the testing out myself. (https://github.com/davidhewitt/setuptools-rust/runs/956173939?check_suite_focus=true) Thanks again for this! |
Sure thing! It's going to be a bit of a road ahead, but I'm super excited about the possibility of getting pyca/cryptography using pyo3! |
Likewise; looking forward to seeing the road ahead! 🎉 |
@davidhewitt unfortunately because of pep517, there's no way to take advantage of this until there's a release on pypi. Would you be up for doing a release with this? (Totally understand if you want to wait for #78 to be finished!) |
I think #78 might be blocked until pyo3 |
Thanks so much!
…On Fri, Aug 7, 2020 at 12:01 PM David Hewitt ***@***.***> wrote:
I think #78 <#78> might be
blocked until pyo3 0.12 comes out with "better" support for pypy, so I'll
go ahead and release now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBEUGOPSNPCRBSURRO3R7QQM7ANCNFSM4PXAIVKQ>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
Hmm, so this was broken by the 0.12 release, which now errors with:
I suppose I should just extend this to auto-set that var. |
Still doing testing, but getting this branch up now for visibility.
Fixes #76