suppress pyc generation

Discussion in 'Python' started by Eddy Ilg, Dec 25, 2005.

  1. Eddy Ilg

    Eddy Ilg Guest

    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
     
    Eddy Ilg, Dec 25, 2005
    #1
    1. Advertising

  2. Eddy Ilg

    Ivan Herman Guest

    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" <>
    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
    >
     
    Ivan Herman, Dec 25, 2005
    #2
    1. Advertising

  3. Eddy Ilg

    Ivan Herman Guest

    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" <>
    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
    >
     
    Ivan Herman, Dec 25, 2005
    #3
  4. Eddy Ilg

    Ivan Herman Guest

    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" <>
    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
    >
     
    Ivan Herman, Dec 25, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. peshrad
    Replies:
    3
    Views:
    1,509
    David Freeman
    Nov 8, 2004
  2. =?Utf-8?B?SmFzb24gUGV0dHlz?=

    Suppress viewstate __viewstate rendering

    =?Utf-8?B?SmFzb24gUGV0dHlz?=, Jan 14, 2005, in forum: ASP .Net
    Replies:
    10
    Views:
    2,919
    Steven Cheng[MSFT]
    Jan 18, 2005
  3. RJN
    Replies:
    1
    Views:
    5,687
    jongalloway
    Mar 5, 2005
  4. Replies:
    7
    Views:
    616
    David Wahler
    Mar 1, 2006
  5. John W. Long

    HTML Generation (Next Generation CGI)

    John W. Long, Nov 22, 2003, in forum: Ruby
    Replies:
    4
    Views:
    346
    John W. Long
    Nov 24, 2003
Loading...

Share This Page