Another option is to write an interpreter for the C extension source code that works like the Python interpreter in PyPy. This is what we do to support C extensions in JRuby+Truffle <a href="http:&#x2F;&#x2F;chrisseaton.com&#x2F;rubytruffle&#x2F;cext&#x2F;" rel="nofollow">http:&#x2F;&#x2F;chrisseaton.com&#x2F;rubytruffle&#x2F;cext&#x2F;</a>.