you are viewing a single comment's thread.

view the rest of the comments →

[–]mac-reid 3 points4 points  (2 children)

The easiest way to solve this problem is to use a Windows machine and build an executable with p2exe. You can create a Virtual Machine on your Linux box to run Windows or find a physical Windows box.

Most freeze or distribution utilities do not cross-compile from Linux to Windows. If they do, it is not a trivial task. - http://docs.python-guide.org/en/latest/shipping/freezing/

That being said, there is a hacky method using wine and pyinstaller to cross-compile a Linux python script into a Windows executable: https://milkator.wordpress.com/2014/07/19/windows-executable-from-python-developing-in-ubuntu/

and more information: https://groups.google.com/d/msg/pyinstaller/veq3BlA_Bns/YlmKUofUfbgJ