The Artima Developer Community
Sponsored Link

Python Buzz Forum
Py2exe

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Thomas Guest

Posts: 236
Nickname: tag
Registered: Nov, 2004

Thomas Guest likes dynamic languages.
Py2exe Posted: Aug 16, 2006 2:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Thomas Guest.
Original Post: Py2exe
Feed Title: Word Aligned: Category Python
Feed URL: http://feeds.feedburner.com/WordAlignedCategoryPython
Feed Description: Dynamic languages in general. Python in particular. The adventures of a space sensitive programmer.
Latest Python Buzz Posts
Latest Python Buzz Posts by Thomas Guest
Latest Posts From Word Aligned: Category Python

Advertisement

Suppose you don’t know if your Windows users have Python installed – or you don’t know which version of Python they’ve got installed. You can still distribute a Python program to them using py2exe.

Here’s how:

  • Make sure that you yourself have Python installed, and that you know which version you have installed (python -v will tell you).
  • Visit http://www.py2exe.org/ to get an overview of what Py2exe does.
  • Head over to the SourceForge and download the version of Py2exe which matches your version of Python
  • Install Py2exe
  • Look though the code samples to find something which matches what you need to do
  • And do it!

Using Py2exe

Suppose you want to distibute my solution to the 8 Queens puzzle. You need to create a file called setup.py which looks like:

from distutils.core import setup
import py2exe
setup (
  version = "1.0",
  name = "N Queens puzzle solver",
  console = ["queens.py"]
  )

Then run:

python setup.py py2exe

The executable and DLLs appear in the dist subdirectory of your current working directory.

Read: Py2exe

Topic: The power of open standards: Windows Live Writer worked first time when tested against... Previous Topic   Next Topic Topic: What You See Is What I See

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use