[Pythonmac-SIG] Xcode 3.0 and Compiled Python Files?
Brian Berliner
bb at brianberliner.com
Wed Apr 23 17:00:31 CEST 2008
Hi Chris,
Thanks for the response.
So, I'm using Xcode 3.0 with Python and Objective-C/Cocoa files
intermixed.
Right now, I just do the Xcode "Build" process, which creates my
foo.app package.
Would py2app be appropriate for me, since I have mixed Xcode/Cocoa and
Python files, currently controlled by the Xcode build environment?
Also, I'm developing on Leopard for Leopard, if that matters...
Thanks!
-Brian
On Apr 22, 2008, at 5:02 PM, Christopher Barker wrote:
> 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
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
More information about the Pythonmac-SIG
mailing list