开发者

PyPy - SWIG - QuickFix mix

开发者 https://www.devze.com 2023-03-17 18:03 出处:网络
PyPy has some compatibility limitations, especially regarding the CPython C API. I use QuickFix package which comes with precompiled SWIG bindings, and I\'m considering using it with PyPy. As I am no

PyPy has some compatibility limitations, especially regarding the CPython C API.

I use QuickFix package which comes with precompiled SWIG bindings, and I'm considering using it with PyPy. As I am not fluent in C API and SWIG, my questions are:

开发者_StackOverflow中文版
  • Does PyPy's C API compatibility limitations hinder work with SWIG? Could you explain why?
  • Do I need to recompile the SWIG bindings to work specifically with PyPy? Is that possible? How?


PyPy's C API compatibility layer would not work with SWIG. The main reason is that SWIG uses internal APIs and pokes into C structures without using APis. I guess SWIG could be fixed, but so far it has not been.

You would have to recompile it if it have worked, but it will not work anyway.


Just stumbled across this. These days SWIG 4.0.2 and PyPy 7.3.7 or higher should play well together, it is worth a try.

0

精彩评论

暂无评论...
验证码 换一张
取 消