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
ctypes should be able to link with installed libffi #43157
Comments
ctypes always uses the included libffi implementation attached is a hack to just always build using the |
Logged In: YES Why is it desirable to link with the system ffi? That just |
Logged In: YES It's not an external dependency, if it's not found. The size patch updated. |
Logged In: YES I tend to accept this patch. Martin, any objections? Matthias: do any of the buildbot slaves have a system libffi About the code: Would updating the included libffi code to GCC HEAD bring |
Logged In: YES
the Debian and Ubuntu bots have libffi from gcc-4.1 installed. I think in the past, there was a complaint about a updating the code would at least make the library buildable |
Logged In: YES I tried your patch on an AMD64 ubuntu 5.10, after I Ok, new features in libffi might not be the norm, but I see Do *you* see a solution for that? For the actual changes to setup.py, if the patch really is a |
Logged In: YES maybe a configure switch --with-system-ffi could do it? |
Logged In: YES I do not really know. Maybe using A pragmatic approach would be to parse pyconfig.h itself in |
Logged In: YES If this configuration needs an operator decision, I think setup.py *should* then skip over building _ctypes, as it |
Logged In: YES I'm astonished how flexible the build-system is :-), once setup.py needs a change, though, so that the _ctypes/libffi One possible advange of Modules/Setup.local is that one can |
Logged In: YES Setup.local has the disadvantage that you have to edit the |
Logged In: YES The code is fine, but it lacks documentation. There should |
Logged In: YES documentation added. |
Logged In: YES Thanks for the patch. Committed as r45278. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: