[Python-Dev] Python install layout and the PATH on win32

Lindberg, Van Van.Lindberg at haynesboone.com
Fri Mar 16 17:22:49 CET 2012


On 3/16/2012 10:53 AM, Paul Moore wrote:
> The only way I can read this to make sense is that you somehow
> consider the Python installation as part of your development
> environment (you mentioned source control earlier in the thread -
> surely you don't manage your Python installation in source control -
> binaries, stdlib, etc?). I can't see why you would do this, and it
> certainly doesn't seem like a reasonable thing to do to me.
>
> Can you clarify?

I don't check in the python binary itself, nor the stdlib, but I *do* 
check in the whole "installation", including the binaries directory.

I like having my deploy environment exactly match my develop 
environment. So if I do have an executable program, I put it in the 
binaries directory and check it in. My .hgignore includes "python", 
"python.exe", pip, easy_install, etc. - things that are "owned by the 
installation - but it includes everything else.

As for the stdlib, I don't check that in, so that portion of the 
proposal (standardize lib naming) is nice to have, but not essential to me.

For example, in the following environment:

env/
   bin/
     python
     pip
     easy_install
     my_script
   lib/
     [stuff]
   data/
     [stuff]
   src/
     my_package

I would include bin/my_script, src/, and data/ in my version control. 
This breaks cross-platform development if "bin" is named "Scripts".

CIRCULAR 230 NOTICE: To ensure compliance with requirements imposed by 
U.S. Treasury Regulations, Haynes and Boone, LLP informs you that any 
U.S. tax advice contained in this communication (including any 
attachments) was not intended or written to be used, and cannot be 
used, for the purpose of (i) avoiding penalties under the Internal 
Revenue Code or (ii) promoting, marketing or recommending to another 
party any transaction or matter addressed herein.

CONFIDENTIALITY NOTICE: This electronic mail transmission is confidential, 
may be privileged and should be read or retained only by the intended 
recipient. If you have received this transmission in error, please 
immediately notify the sender and delete it from your system.



More information about the Python-Dev mailing list