Python deployment options.

Larry Bates larry.bates at websafe.com
Wed Nov 8 14:26:33 EST 2006


king kikapu wrote:
> I see...So, if these are the only options, the only "safe" bet is to
> install the language on the machine (beeing Win, Linux or Mac)
> and execute the .py files, right ??
> 
> 
> On Nov 8, 1:24 pm, "Chris_147" <chris.van.b... at gmail.com> wrote:
>> king kikapu wrote:
>>> Hi to all folks here,
>>> i just bought a book and started reading about this language.
>>> I want to ask what options do we have to deploy a python program to
>>> users that do not have the labguage installed ??
>>> I mean, can i make an executable file, or something that contains the
>>> runtime and the modules that the program only use or am i forced to
>>> download the language to the user machine so the .py  files can be run
>>> ??
>>> Thanks in advance,
>>> king kikapuWell, on Windows you have to look for the Py2Exe package
>> (www.py2exe.org)
>> On Mac OS X you can use Py2App
>> (http://undefined.org/python/py2app.html)
>>
>> Mind you, on Windows there is one big potentional problem: Python is
>> compiled with Visual Studio 2003 and needs msvcr71.dll.  So Py2Exe
>> wants to distribute that dll also, but if you don't have a valid Visual
>> Studio license, you are not allowed to.
>> It is explained further in this thread:http://groups.google.com/group/comp.lang.python/browse_frm/thread/bcc...
>>
>> I doubt Microsoft will unleash their lawyers on you, but it is a
>> problem.
> 

py2exe and py2app work extremely well.  I'm not sure why you wouldn't want
to use them if you want to distribute to those platforms.  Actually they
take the installed version of python out of the equation (at least I know
py2exe does).

-Larry



More information about the Python-list mailing list