-
Notifications
You must be signed in to change notification settings - Fork 101
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
Make setuptools-rust play nice with cffi #68
Conversation
e777992
to
ba9bd4c
Compare
(Apologies that this is a WIP mess! I'm having some trouble testing locally, so I'm relying on travis!) |
9f1ba74
to
a7d5761
Compare
👋 So the reason for this is that currently, if you use both cffi and setuptools-rust in the same This switches from the monkeypatching approach to using the same approach that cffi uses, which should play nice with other things that use the same strategy. It's a bit gross, but seems to work! ❤️ to @dstufft for explaining this to me. We can't use maturin for the same reason: we have a large existing |
If there's anything I can be doing to help get this reviewed and landed, please don't hesitate to ask me to do more work :-) |
As a pyo3 maintainer I'm not super familiar with the internals of It looks like all functionality is preserved with this PR, though what is not clear to me is whether this is a breaking change to public API of Also, as this PR is intended to add compatibility with |
a) I don't think this changes anything, at least as used by normal |
The primary benefit of this is that it'll work when you have a single project using both setuptools-rust as well as cffi.
Question: Would it be ok to add some tiny CFFI usage to the html-py-ever module, or woiuld you prefer it be an entirely separate example? |
b2bf400
to
739ce95
Compare
739ce95
to
215ce76
Compare
Took me a few try 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.
This is brilliant; thanks very much!
I'm writing a PR this afternoon to update the release process for setuptools-rust
to use github actions, once I've got that sorted I'll put out a new setuptools_rust
version.
🎉 thanks! |
(Just an apology to note that I had too many things I was making progress with this afternoon and didn't get around to the release process PR. It's on my list of things to make time for in the week ahead. Sorry for the delay.) |
Totally understand! If I can be helpful, let me know.
…On Sun, Aug 2, 2020 at 6:06 PM David Hewitt ***@***.***> wrote:
(Just an apology to note that I had too many things I was making progress
with this afternoon and didn't get around to the release process PR. It's
on my list of things to make time for in the week ahead. Sorry for the
delay.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBCEYYS22B7CF6QAPY3R6XPNJANCNFSM4PJATVKA>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
|
Woooo!
…On Thu, Aug 6, 2020 at 8:24 AM David Hewitt ***@***.***> wrote:
0.11.0 is now released and should be good for you to use!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#68 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBETTYLGNKWAAXUCLILR7KOHXANCNFSM4PJATVKA>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
The primary benefit of this is that it'll work when you have a single project using both setuptools-rust as well as cffi.