I am using cffi+pypy to link with C code in my project under the Windows platform.
Because I'm using the MinGW gcc. It has some trouble if I use ffi.compile() directly (it assumes I use the MSC),
so I need to use ffi.emit_c_code('xxx.c') to generate the C code, then use gcc and linker to link with my C libraries.
The cffi generated .so file used to be named
xxx.pypy-26.so if it runs with pypy 4.0.1.
But now I update the pypy to pypy 5.0.0, the .so name becomes
xxx.pypy-41.so
I know if I use the ffi.compile(), it will generate the .so with the correct name automatically.
But if I need to use ffi.emit_c_code() then compile/link it with GCC so I need to give the .so name by myself.
Is there an easy way to determine the .so name I should give? (pypy-26 or pypy-41 or others if use future pypy version)