32

I am looking for a Python3.0 version of "py2exe". I tried running 2to3 on the source for py2exe but the code remained broken.

Any ideas?

Peter O.
  • 32,158
  • 14
  • 82
  • 96
user61695
  • 321
  • 1
  • 3
  • 4

5 Answers5

30

Update 2014-05-15

py2exe for Python 3.x is now released! Get it on PyPI.

Old information

Have a look at the py2exe SourceForge project SVN repository at:

http://py2exe.svn.sourceforge.net/

The last I looked at it, it said the last update was August 2009. But keep an eye on that to see if there's any Python 3 work in-progress.

I've also submitted two feature requests on the py2exe tracker. So far, no feedback on them:

Community
  • 1
  • 1
Craig McQueen
  • 41,871
  • 30
  • 130
  • 181
27

Did you check out cx_Freeze? It seems to create standalone executables from your Python scripts, including support for Python 3.0 and 3.1

bluish
  • 26,356
  • 27
  • 122
  • 180
Titusz
  • 1,435
  • 1
  • 22
  • 30
  • 1
    Will it run on Ubuntu 64 bit? – riza Aug 11 '09 at 23:52
  • It runs on Ubuntu, but it generates Linux executables, not Windows executables. You can run it on WINE, but then you may need to copy some DLLs in manually. – Thomas K Feb 11 '12 at 19:42
9

py2exe for Python3 is out!

Here is the original bug report:
http://sourceforge.net/projects/py2exe/

Here is the comment mentioning the release:
http://sourceforge.net/projects/py2exe/

Here is the package on pypi:
https://pypi.python.org/pypi/py2exe/0.9.2.0

Note that py2exe for Python 3 only supports Python 3.3 and above!

A huge thank you to the py2exe development team!

dotancohen
  • 30,064
  • 36
  • 138
  • 197
7

The py2exe and 2to3 programs serve completely different purposes, so I'm not sure what your ultimate goal is.

If you want to build an executable from a working Python program, use the version of py2exe that is suitable for whichever Python you are using (version 2 or version 3).

If you want to convert an existing Python 2 program to Python 3, use 2to3 plus any additional editing as necessary. The Python 3 documentation describes the conversion process in more detail.

Update: I now understand that you might have been trying to run 2to3 against py2exe itself to try to make a Python 3 compatible version. Unfortunately, this is definitely beyond the capabilities of 2to3. You will probably have to wait for the py2exe project to release a Python 3 compatible version.

Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
  • 1
    Looking at the py2exe website and sourceforge download site, there does not seem to be a 3.0 version of py2exe. where did you get the idea there was? – John Mulder Feb 03 '09 at 05:18
  • 2
    Ah, now I understand the original question! I think the original poster tried to run 2to3 against py2exe itself in the hopes of creating a version of py2exe that is suitable for Python 3. – Greg Hewgill Feb 03 '09 at 06:15
  • That is correct guys, I was hoping to convert py2exe to make it Python3.0 compatible. Thanks for the replies, I guess I will just have to wait till py2exe releases a new version. – user61695 Feb 03 '09 at 16:47
0

If you have easy setup installed, type pip install py2exe in a shell to install.