Interesting, that's the generalization of a use case we solved for a very specific case (nicely embedding V8 into a Python wheel):
<a href="https://speakerdeck.com/pycon2017/jean-baptiste-aviat-writing-a-c-python-extension-in-2017?slide=11" rel="nofollow">https://speakerdeck.com/pycon2017/jean-baptiste-aviat-writin...</a>