Generating .pyc/.pyo from a make file

vincent wehren vincent at visualtrans.de
Wed Feb 2 23:19:29 EST 2005


Tim Daneliuk wrote:
> Steve Holden wrote:
> 
>> Roland Heiber wrote:
>>
>>> Tim Daneliuk wrote:
>>>
> Aha!  Exactly ... and that makes perfect sense too.  D'oh!  I guess a 
> better
> distribution strategy would be to have the installation program generate 
> the pyo
> file at installation time...
> 
> Thanks -

Also, the *.py? files contain the full pathname of the *.py they have 
been compiled from. Copying them to other path locations will give you 
the wrong __file___ information in tracebacks.

--
Vincent Wehren




More information about the Python-list mailing list