Py2exe

Thread Solved
Reply

Join Date: Jan 2009
Posts: 20
Reputation: funfullson is an unknown quantity at this point 
Solved Threads: 1
funfullson funfullson is offline Offline
Newbie Poster

Py2exe

 
0
  #1
Jul 3rd, 2009
I am sorry if it is simple or repetitive but I have problem with this.
I make a play :
I have python 2.6 or 3.0
a program in my c partition
its name is test.py
I want to compile it and it have to works in linux and windows.
I cannot read english so well please write little sentences with clear means.
Thanks.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,872
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 871
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Py2exe

 
0
  #2
Jul 3rd, 2009
The py2exe module does not compile to an executable.

It packages your Python bytecode files, other needed files and the Python interpeter to run from an executable file.

At this point py2exe is not yet out for Python3.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 489
Reputation: shadwickman will become famous soon enough shadwickman will become famous soon enough 
Solved Threads: 76
shadwickman's Avatar
shadwickman shadwickman is offline Offline
Posting Pro in Training

Re: Py2exe

 
0
  #3
Jul 3rd, 2009
You will have to make separate executables for Windows and Linux too.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson

my photography
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 20
Reputation: funfullson is an unknown quantity at this point 
Solved Threads: 1
funfullson funfullson is offline Offline
Newbie Poster

Re: Py2exe

 
0
  #4
Jul 3rd, 2009
How do you render your projects tocustomers?
You will say himto instal python?
how I do it.Is it possible to make an exe file?if yes how?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 489
Reputation: shadwickman will become famous soon enough shadwickman will become famous soon enough 
Solved Threads: 76
shadwickman's Avatar
shadwickman shadwickman is offline Offline
Posting Pro in Training

Re: Py2exe

 
0
  #5
Jul 3rd, 2009
py2exe can make .exe files for Windows. These .exe files can run without Python installed. However, .exe files will not run on Linux.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson

my photography
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 20
Reputation: funfullson is an unknown quantity at this point 
Solved Threads: 1
funfullson funfullson is offline Offline
Newbie Poster

Re: Py2exe

 
0
  #6
Jul 4th, 2009
I wrote my condition please write how can i do it.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 489
Reputation: shadwickman will become famous soon enough shadwickman will become famous soon enough 
Solved Threads: 76
shadwickman's Avatar
shadwickman shadwickman is offline Offline
Posting Pro in Training

Re: Py2exe

 
0
  #7
Jul 4th, 2009
Well here is the py2exe website:
http://www.py2exe.org/
And here is their tutorial that you should follow:
http://www.py2exe.org/index.cgi/Tutorial

This only makes executables which run on Windows. However, most Linux distributions already come with Python installed, so Python .py files should run fine from them as-is.
Last edited by shadwickman; Jul 4th, 2009 at 3:31 am.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson

my photography
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 20
Reputation: funfullson is an unknown quantity at this point 
Solved Threads: 1
funfullson funfullson is offline Offline
Newbie Poster

Re: Py2exe

 
0
  #8
Jul 4th, 2009
#!/usr/bin/env python

from distutils.core import setup
import py2exe
import sys

sys.argv.append("py2exe")

sys.argv.append("--bundle")
sys.argv.append("1")


opt = {"py2exe": {"compressed": 1,
"optimize": 2,
"ascii": 1,
"bundle_files": 1,
"packages": ["encodings"]}}

setup(options = opt, zipfile=None, console = [{"script": 'test.py'}])
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 489
Reputation: shadwickman will become famous soon enough shadwickman will become famous soon enough 
Solved Threads: 76
shadwickman's Avatar
shadwickman shadwickman is offline Offline
Posting Pro in Training

Re: Py2exe

 
0
  #9
Jul 4th, 2009
Um... what exactly are you trying to say with the above post? So you posted some code. Good work, but what is your question/motive?
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson

my photography
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 20
Reputation: funfullson is an unknown quantity at this point 
Solved Threads: 1
funfullson funfullson is offline Offline
Newbie Poster

Re: Py2exe

 
0
  #10
Jul 4th, 2009
I have this but realy confused Ihas error.
left it down.say me a way to make an executable program with maprogram
name:test.py
location c:\
how do it?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC