Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Python, when is platlib != purelib?

Python has the ability to install platlib and purelib in different locations. What's the difference, why does this feature exist, and when is it used in practice?

like image 794
joeforker Avatar asked May 31 '12 12:05

joeforker


1 Answers

To quote from Installing Python Modules:

for example, if you want to maintain all Python module-related files under python in your home directory, and you want a separate directory for each platform that you use your home directory from[.]

(I.e., you're in a heterogeneous network environment where computers may run different operating systems but each mounts your homedir from a network storage server.)

like image 199
Fred Foo Avatar answered Oct 18 '22 20:10

Fred Foo