> Programming Languages > Python
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Python



Python - "RE: Ask for a tool to protect my .pyc file :)" in Programming Languages


Old 05-09-2005   #1
..lane.. ..mot.. .. ..imoth..
 
Default RE: Ask for a tool to protect my .pyc file :)

Lily Kakm wrote:

> when I distribute my software, I will give the users .pyc file (maybe
> I can use py2exe, but I think there's no essential different),
> because I don't like them to know my source code.


Leaving aside all other arguments of whether or not you should allow
your users to see your source code ...

The simplest method to compile python is to use Pyrex:
http://www.google.com.au/search?q=pyrex&btnI

It's almost-compatible syntax-wise with Python 2.2 (no augmented
***ignment, no nesting cl***es, and cl***methods don't appear to work -
probably static methods too).

Then you just have a single script which calls your first main module,
and everything else is in a shared library (.so, .pyd).

It's quite nice to be able to have identical source, copy the source
tree, rename files appropriately and be able to build using Pyrex (with
an appropriate setup.py).

Tim Delaney
 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0