views:

1055

answers:

4

Does anyone know if there's a windows Python executable creator program available now that supports Python 3.0.1? It seems that py2exe and pyInstaller, along with all the rest I've found, still aren't anywhere close to supporting 3.0 or 3.0.1.

Any help is greatly appreciated.

Edit: I guess I could downgrade the program to an older version of Python to make it work with py2exe. The hardest part will probably be using an older version of Tkinter.

Has anyone had luck with using py2exe or pyInstaller (or another windows-friendly program) to create an executable that uses Tkinter as well as subprocess.

I'm actually not sure how to get the directory my program will be installed into so subprocess can find the executable program I'm using.

+3  A: 

Not answering the original question but this:

I'm actually not sure how to get the directory my program will be installed into so subprocess can find the executable program I'm using.

You can use something like

if hasattr(sys, 'frozen'): # this means we're installed using py2exe/pyinstaller
    INSTDIR = os.path.dirname(sys.executable)
else:
    ...
dF
+1  A: 

After searching for many days I came to the conclusion that the isn't currently any method for making executables for python 3.0 scripts.

One workaround I came up with was to use portable python: http://www.portablepython.com/releases/

Which at least allows a separate install which you could distribute with your scripts to help users.

Free Wildebeest
+4  A: 

How about cx_Freeze. Seems to support python 3.0 and 3.1?

Titusz
A: 

I got it working with cx_freeze.

Was a bit of a hassle since you have to add a line of code to get around some errors but it turned out to go just fine with Python 3.1.1 and PyQt4.

Also see here to check on that extra line of code etc.

Matze