Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37250 > unrolled thread

pycache directories

Started bymonosij.forums@gmail.com
First post2013-01-21 20:55 -0800
Last post2013-01-22 15:44 -0800
Articles 4 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  pycache directories monosij.forums@gmail.com - 2013-01-21 20:55 -0800
    Re: pycache directories Terry Reedy <tjreedy@udel.edu> - 2013-01-22 01:01 -0500
      Re: pycache directories monosij.forums@gmail.com - 2013-01-22 15:44 -0800
      Re: pycache directories monosij.forums@gmail.com - 2013-01-22 15:44 -0800

#37250 — pycache directories

Frommonosij.forums@gmail.com
Date2013-01-21 20:55 -0800
Subjectpycache directories
Message-ID<841fcc01-df05-4a8b-8b4f-1217c49aac44@googlegroups.com>
I am doing some OO python3 where I am using multiple dirs/sub-dirs.

So everything works fine, however when I run code __pycache__ directories are being created in every directory touched by the execution.

Is it possible to set a configuration to be able to create these pycache directories in a specific location?

Coming from the Java world - am used to the /src, /bin aspects - so somewhat prefer the 'executables' out of the way.

I am using python3 on Ubuntu so wondering if there is some environ setting?

Thanks for your help.

[toc] | [next] | [standalone]


#37251

FromTerry Reedy <tjreedy@udel.edu>
Date2013-01-22 01:01 -0500
Message-ID<mailman.778.1358834539.2939.python-list@python.org>
In reply to#37250
On 1/21/2013 11:55 PM, monosij.forums@gmail.com wrote:
> I am doing some OO python3 where I am using multiple dirs/sub-dirs.
>
> So everything works fine, however when I run code __pycache__
> directories are being created in every directory touched by the
> execution.

This is much better than having multiple .pyc files in every directory, 
as in Py2. You should soon learn to ignore them.

> Is it possible to set a configuration to be able to create these
> pycache directories in a specific location?

No. (I am very sure.) You can however, not have the .pyc files written, 
but that means recompile with every run. So that option is meant for 
running off a read-only medium.

-- 
Terry Jan Reedy

[toc] | [prev] | [next] | [standalone]


#37359

Frommonosij.forums@gmail.com
Date2013-01-22 15:44 -0800
Message-ID<437b29ed-14ae-4b22-9cb2-48ab629bf7ba@googlegroups.com>
In reply to#37251
On Tuesday, January 22, 2013 1:01:44 AM UTC-5, Terry Reedy wrote:
> 
> > I am doing some OO python3 where I am using multiple dirs/sub-dirs.
> 
> >
> 
> > So everything works fine, however when I run code __pycache__
> 
> > directories are being created in every directory touched by the
> 
> > execution.
> 
> 
> 
> This is much better than having multiple .pyc files in every directory, 
> 
> as in Py2. You should soon learn to ignore them.
> 
> 
> 
> > Is it possible to set a configuration to be able to create these
> 
> > pycache directories in a specific location?
> 
> 
> 
> No. (I am very sure.) You can however, not have the .pyc files written, 
> 
> but that means recompile with every run. So that option is meant for 
> 
> running off a read-only medium.
> 
> 
> 
> -- 
> 
> Terry Jan Reedy

Thanks Terry. I understand needing to adjust.
Appreciate this forum.

Monosij

[toc] | [prev] | [next] | [standalone]


#37383

Frommonosij.forums@gmail.com
Date2013-01-22 15:44 -0800
Message-ID<mailman.847.1358900809.2939.python-list@python.org>
In reply to#37251
On Tuesday, January 22, 2013 1:01:44 AM UTC-5, Terry Reedy wrote:
> 
> > I am doing some OO python3 where I am using multiple dirs/sub-dirs.
> 
> >
> 
> > So everything works fine, however when I run code __pycache__
> 
> > directories are being created in every directory touched by the
> 
> > execution.
> 
> 
> 
> This is much better than having multiple .pyc files in every directory, 
> 
> as in Py2. You should soon learn to ignore them.
> 
> 
> 
> > Is it possible to set a configuration to be able to create these
> 
> > pycache directories in a specific location?
> 
> 
> 
> No. (I am very sure.) You can however, not have the .pyc files written, 
> 
> but that means recompile with every run. So that option is meant for 
> 
> running off a read-only medium.
> 
> 
> 
> -- 
> 
> Terry Jan Reedy

Thanks Terry. I understand needing to adjust.
Appreciate this forum.

Monosij

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web