[Tutor] Re: compiling python apps

Michael Honeyfield mhoneyfield@xtra.co.nz
Wed Jul 2 05:37:02 2003


> I've never looked specifically at PySol, but Python doesn't get 
> "compiled" in the classic sense of the word. The ready to run package 
> most likely contains a Python interpreter and whatever other third party 
> libraries PySol employs, but *also* the source code.

hmm... the ready to run contains 3 1MB pysol_xx.pyc files. The xx being 
some numbers. I understand that its not "compiel" but more a byte code. 
What I dont get is that when I run the src, which is only .py's, a .pyc 
is made for each .py, so how come pysol only contains 3 of these .pyc's 
and they are much larger than the .pyc's I get when I run the scripts. 
Is there some way to "group" scripts together into a single .pyc and 
then using python to run the .pyc?


>> But to sum it up, How do I get my modified pysol source compile like 
>> the ready to run package? I have emailed the maintainer, but not had 
>> any reply (I suspect he is busy in the next cool release of pysol :) )
> 
> 
> Install all required third-party packages as well as Python on your 
> machine en just start the application using "python appname.py" (where 
> appname is the name of the main python file).

its only python 2.2.x and tcl :)

Cheers

Mike

-- 
Ok, there's no way to do this gracefully, so I won't even try. I'm going 
to just hunker down for some really impressive extended flaming, and my 
asbestos underwear is firmly in place, and extremely  uncomfortable.
						
-- Linus Trovalds