user1266969
user1266969

Reputation: 71

Using Wine and py2exe to create windows application out of a Python project

I recently built an application, for a client, which has several python files. I use ubuntu, and now that I am finished, I would like to give this to the client in a way that would make it easy for her to use in windows.

I have looked into py2exe with wine, as well as cx_freeze and some other stuff, but cannot find a straightforward tutorial or useful documentation for turning many python files in ubuntu into an easy-to-use windows application or executable or anything really.

Thanks!

Upvotes: 7

Views: 4841

Answers (2)

Cees Timmerman
Cees Timmerman

Reputation: 19644

This page appears to have a solution, as the asker didn't reply:

  1. Install WINE.
  2. Use WINE to install Python 2.3.
  3. Use WINE to install py2exe.
  4. Make a setup.py file for py2exe to compile your script:
from distutils.core import setup
import py2exe

setup(name="vervang",
  scripts=["vervang.py"],
)
  • Run wine python.exe setup.py py2exe

This page says the resulting binaries might not be valid Win32 executables, though.

Upvotes: 2

user850498
user850498

Reputation: 727

py2exe will not work on linux. Try pyinstaller it is a pure python implementation that will work on linux, mac and windows.

Upvotes: 1

Related Questions