Is there a way using py2exe or some other method to generate dll files instead of exe files?
I would want to basically create a normal win32 dll with normal functions but these functions would be coded in python instead of c++.
I think you could solve this by doing some hacking:
Not tested, but I think the theory is sound.
Essentially, you reimplement py2exe's output executable's main() in your dll.
I doubt that py2exe does this, as it's architectured around providing a bootstrapping .exe that rolls out the python interpreter and runs it.
But why not just embed Python in C code, and compile that code as a DLL?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With