Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread David Wahler
[EMAIL PROTECTED] wrote: > I was under the impression, that the .pyc files will be used (if found) > by python to speed up execution of scripts... and so we packaged, > deployed and installed the .py/.pyc files on to the ppc-target system. > That package includes, site.py(c), types.py(c) etc., amon

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ppc system. The "...has bad magic..." appears to indicate that The format of .pyc files, which are generated for greater speed of repeat runs, is considered an internal implementation detail subject to change. The exact details are

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread venkatbo
Hi Sebastian, Thanks for that link and your notes. I was under the impression, that the .pyc files will be used (if found) by python to speed up execution of scripts... and so we packaged, deployed and installed the .py/.pyc files on to the ppc-target system. That package includes, site.py(c), ty

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread Just
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Terry Reedy wrote: > > ... > > I am under the impression that .pyc files are system independent. > > Have you tried simply copying them over? > > > > tjr > > Hi Terry, > > It appears that python on the target ppc system is expecting to

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread venkatbo
Terry Reedy wrote: > ... > I am under the impression that .pyc files are system independent. > Have you tried simply copying them over? > > tjr Hi Terry, It appears that python on the target ppc system is expecting to see ppc-related info in the .pyc files. These .pyc were generated at cross com

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread ookoi
You should look at this blog entry: http://www.voidspace.org.uk/python/weblog/arch_d7_2006_02_11.shtml#e222 But if you have the original .py it's quite insane to want to hack the .pyc only for porting it under others architectures. Instead, use setuptools. -- sebastien - http://seb.dbzteam.com

Re: Cross compile generation of .pyc from .py files...

2006-03-01 Thread Terry Reedy
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > However we cannot figure out how to cross-compile the .py (of > distribution) files and > generate the .pyc files for the target ppc from an i686 system. Is it > possible to cross > compile .pyc files from .py files? I am under the i

Cross compile generation of .pyc from .py files...

2006-02-28 Thread venkatbo
Hi all, We've managed to cross-compile (from i686 targeting ppc) python (2.4.2) binaries and extension modules. However we cannot figure out how to cross-compile the .py (of distribution) files and generate the .pyc files for the target ppc from an i686 system. Is it possible to cross compile .p