Nuitka
I would really recommend Nuitka over Cython. Nuitka also compiles Python to native platform code providing a similar level of obfuscation like compiled C code.
python -m pip install nuitka python -m nuitka --follow-imports --include-package urllib3.util.ssl_ myprogram.py ./myprogram.bin --follow-importsdoes a great job of including all imported modules.--include-packageif some imports are hidden and are missing when starting the compiled program, it can be helpful to pass additional packages.
Add the flags --onefile or -standalone if this works to get a package for distribution.
I also used pyarmor referenced here, but the pytransform.so or pytransform.dll shared object which is the core of pyarmor is closed source, which was a blocker in my project.