is it possible to create a win binary file from .py files ?

James Henderson james at logicalprogression.net
Thu Jan 15 11:46:32 CET 2004


On Thursday 15 January 2004 10:25 am, stephane ancelot wrote:
> Hi,
> I am new to python and I would like to know if there are some ways to
> provide a binary file as target . Because my projects may contain lot of py
> files and I do not want to provide source files . for maintenance puproses
> it is too easier for me to send only one file to my customer.
>
> Best Regards
> Steph

Try the freeze tool that comes in the Python distribution.  I can't say where 
you will find it exactly because that depends on you platform but there 
should be a directory somewhere called Tools.

An alternative that does not reduce the number of files but does hide the 
source is to distribute .pyc files.  These are created when you import a 
module, or you can use the compileall module.  Note that this is not a real 
security measure since such files can be disassembled.

James




More information about the Python-list mailing list