Creating Win .exe file from *.py on Linux

William Ray Wing wrw at mac.com
Tue Oct 2 22:29:40 EDT 2018


> On Oct 2, 2018, at 3:03 PM, John Doe <john at doe.com> wrote:
> 
> Hello World
> 
> Is it possible to create on Linux win .exe file from *.py file?
> -- 
> https://mail.python.org/mailman/listinfo/python-list

As was pointed out here a day or so ago, the answer is yes, but it is a two step process.  First step is to use Cython to compile the python file to C source, then compile that to a binary executable.  The link given was:

	https://medium.com/@xpl/protecting-python-sources-using-cython-dcd940bb188e 

Where the focus is keeping the python source away from prying eyes, but it generates exactly what you want.

Bill


More information about the Python-list mailing list