user61695
user61695

Reputation: 321

Py2exe for Python 3.0

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?

Upvotes: 32

Views: 60070

Answers (5)

Zack White
Zack White

Reputation: 1

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

Upvotes: 0

Craig McQueen
Craig McQueen

Reputation: 43486

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:

Upvotes: 30

dotancohen
dotancohen

Reputation: 31521

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!

Upvotes: 9

Titusz
Titusz

Reputation: 1477

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

Upvotes: 27

Greg Hewgill
Greg Hewgill

Reputation: 994639

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.

Upvotes: 7

Related Questions