Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73493
| References | <bc95879a-5f0b-4b79-bfc9-71a3d61fc224@googlegroups.com> |
|---|---|
| Date | 2014-06-22 10:58 +0100 |
| Subject | Re: How to distribute python console program |
| From | Nicholas Cole <nicholas.cole@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11184.1403431110.18130.python-list@python.org> (permalink) |
On Sun, Jun 22, 2014 at 3:51 AM, Nicholas Cannon <nicholascannon1@gmail.com> wrote: > I have a simple program that is ran in the console with 2 modules and i was wondering how i could like export it so i could give it to someone to use as like a utlitie in the console? I'm assuming that the 'someone' you want to give it to has python installed (if they are running any kind of linux or OS X they should do). If so, you can use something like https://pypi.python.org/pypi/ncdistribute/ to make single zip file that contains your code and all its dependencies. There is no need to unpack the zip file - python can run it without unpacking, so you simply put the your_utility_name.pyz file somewhere in the user's path and it can be run easily. You can even rename it so that it doesn't have the .pyz filename. If you want to send your application to someone who doesn't have python installed, things are trickier. http://cx-freeze.sourceforge.net aims to help you do that kind of thing. Hope that helps, Nicholas
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to distribute python console program Nicholas Cannon <nicholascannon1@gmail.com> - 2014-06-21 19:51 -0700 Re: How to distribute python console program Jurko Gospodnetić <jurko.gospodnetic@pke.hr> - 2014-06-22 11:56 +0200 Re: How to distribute python console program Nicholas Cole <nicholas.cole@gmail.com> - 2014-06-22 10:58 +0100 Re: How to distribute python console program Terry Reedy <tjreedy@udel.edu> - 2014-06-22 14:25 -0400
csiph-web