How to compile a Python package to a dll

Write everything you want to hide in Cython, and compile it to pyd. That’s as close as you can get to making compiled python code.

Also, dll is not a standard, not in Python world. They’re not portable, either.

Leave a Comment