All package managers (that I know of) for dynamic languages offer a mechanism for compiling native code for packages that include bindings to C libraries.
That mechanism could easily be used to achieve the same goal, even if there was no explicit "post-script" mechanism.