Using native libraries using CTypes should probably be the way forward from now on. This allows one to use pure Python to wrap C libraries, in a manner not specific to the Python implementation.
In the Ruby world, the FFI library has accomplished the same thing. Extensions written using FFI work in Ruby 1.8, 1.9, JRuby, and Rubinius. They also avoid the annoying compilation phase.
There is generally a performance hit compared to native extensions, though.
In the Ruby world, the FFI library has accomplished the same thing. Extensions written using FFI work in Ruby 1.8, 1.9, JRuby, and Rubinius. They also avoid the annoying compilation phase.
There is generally a performance hit compared to native extensions, though.