suppress pyc generation

Ivan Herman ivan at ivan-herman.net
Sun Dec 25 09:53:57 EST 2005


There is a simple, though slightly ugly trick: if the directory where the python
module resides, is not writable to the python process, the python runtime will
silently ignore .pyc generation (as far as I know). It is not elegant, but it
works...

Ivan

-------- Original Message --------
From: "Eddy Ilg" <eddy at fericom.net>
To:
Subject: suppress pyc generation
Date: 25/12/2005 14:01

> Hi,
> 
> I would like to suppress .pyc generation or have the .pyc generation in a
> speical seperate root (I found something about PYCROOT). Has this been
> implemented yet? Is there an environment variable or a command line switch
> that suppresses .pyc generation?
> 
> Eddy
> 



More information about the Python-list mailing list