| | |
Py2exe
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 22
Reputation:
Solved Threads: 1
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.
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.
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
- Hunter S. Thompson
my photography
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
- Hunter S. Thompson
my photography
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.
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
- Hunter S. Thompson
my photography
•
•
Join Date: Jan 2009
Posts: 22
Reputation:
Solved Threads: 1
#!/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'}])
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'}])
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
- Hunter S. Thompson
my photography
![]() |
Similar Threads
- need a help regarding "setup" in pyton using py2exe (Python)
- Question about PY2EXE... (Python)
- wxpython and py2exe (Python)
- Py2exe and Jython - Please help me! (Python)
- Py2exe help (Python)
Other Threads in the Python Forum
- Previous Thread: Loopping in Python
- Next Thread: wxpython gui running on a server
| Thread Tools | Search this Thread |
abrupt ansi anti apache approximation array assignment avogadro backend beginner binary bluetooth book builtin calculator character code converter countpasswordentry curved customdialog dan08 dictionaries dictionary dynamic examples exe file float format function gnu graphics gui heads homework ideas import inches input java launcher library line lines linux list lists loop mouse mysqlquery number numbers numeric output parsing path phonebook plugin pointer port prime programming progressbar projects py2exe pygame python random recursion redirect scrolledtext software statictext statistics string strings sum table terminal text textarea thread threading time tlapse trick tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable wordgame write wxpython xlib






