[Python-Dev] Windows installer and .pyc files mtime

Tim Peters tim.one at comcast.net
Tue Aug 26 21:43:13 EDT 2003

> I was watching file modification times on my Windows box (strange
> hobby, I know :-), and I noticed that after a fresh install of Python,
> the .pyc files seem to be written when the first code that imports the
> corresponding module runs, rather than all of the .pyc files being
> compiled at once by the installer.  Wasn't there code in the installer
> that precompiles all modules?

Not in the PLabs Windows installer, no.

> I know the Unix install does this, and I vaguely remember that the
> Windows installer did this too -- or was it only the Win32all
> installer???

Probably the latter, then.

> If there's code to do that in the Windows installer now, it seems it's
> not working.

There isn't, so it's working fine <wink>.

> If there isn't such code, perhaps there should be?

Why?  Not that increasing installation time and disk consumption aren't
worthy goals ...

More information about the Python-Dev mailing list