[Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?

Christopher Barker Chris.Barker at noaa.gov
Wed Apr 23 02:02:09 CEST 2008


Brian Berliner wrote:
> I'd like to have my built app include only .pyc (or .pyo) files and not 
> to include the .py source files.
> 
> 1. Is this possible?
> 2. How do I do it?

py2app puts all the *.pyc files you need into the application bundle. I
don't think it includes any *.py files except for your main file.

> 3. Is there a way to obfuscate the code so that it is not easy to 
> disassamble?

Not really -- python byte code is not supposed to be all that hard to
read, but it's not python source either -- someone would have to want to
copy your code pretty bad to bother.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the Pythonmac-SIG mailing list