The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Python Programming
|
Distributing application
Discuss Distributing application in the Python Programming forum on Dev Shed. Distributing application Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

May 8th, 2004, 05:21 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
|
Distributing application
How can I distribute application written in Python, so it'll run on machine that doesn't have Python installed, I believe it called 'Freezing' , but I don't have any idea on how to do that.
I used Boa to design GUI and write code and I will ended up with 2 type of file of my script, one with .py and .pyc, what the different? Can I distribute my app. with just includes .pyc file?
|

May 8th, 2004, 08:08 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
__________________
programming language development: www.netytan.com – Hula
|

May 8th, 2004, 08:11 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
Quote: | Originally Posted by netytan |
I'm thinking about py2exe also but what about if I'm distributing thge program to non-Windows environment?
|

May 8th, 2004, 08:27 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
Sorry i missed the last bit of your question there. Anyway the difference between .py .pyc and .pyw files..
When ever you write a program or module in Python you'll usually save it with a .py extension. This simply tells the interpreter (and the OS in some cases) that the file contains a Python program.
Compiled Python files (.pyc) on the other hand are usually created when one Python program imports another. The resulting .pyc version will contain the program in an intermediate form called bytecode. The why - It's a preformance thing
The last file type mentioned; .pyw is the most unusual. All this actually does is tells the interpreter not to open the console when running our program. This is very useful if you're writing a GUI app (as your are) and really dont want to see that old black window.
have fun,
Mark.
|

May 8th, 2004, 09:05 AM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
There was a program hanging around a while ago called 'installer' which claimed to do cross platform execuatables (to a degree) though i never tested it that far.
Im assuming you will need to compile it on your target platform though but if it works then got for it!
In any case this programs been well and truly abandond now though you can still find it attached to one of the threads in this forum if you really want it. Just do a search
Mark.
|

May 10th, 2004, 02:45 AM
|
 |
Mini me.
|
|
Join Date: Nov 2003
Location: Cambridge, UK
|
|
|

May 10th, 2004, 07:52 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 44
Time spent in forums: < 1 sec
Reputation Power: 10
|
|
|
Finally i got the Mc Millan's installer, it tooks me hours before it finally works, I hate command line
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|