| | |
Py2exe
Thread Solved
![]() |
•
•
Join Date: Jan 2009
Posts: 20
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: 20
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 |
alarm anydbm app beginner cipher clear cmd conversion coordinates corners cturtle curves cx-freeze data decimals definedlines development directory dynamic events excel feet file float format function generator getvalue halp handling homework http input ip itunes keycontrol leftmouse line linux list lists loan loop maintain matching maze millimeter module mouse number numbers output parsing path prime programming push py2exe pygame pymailer python queue random rational raw_input recursion recursive schedule screensaverloopinactive script searchingfile singleton slicenotation sqlite ssh string strings sudokusolver tails text time tlapse tooltip tuple type ubuntu unicode url urllib urllib2 valueerror variable ventrilo vigenere web webservice wikipedia word wxpython xlwt






