[Distutils] install_lib lib versus lib64

Matthew Rodriguez DSD staff MKRodriguez at lbl.gov
Fri Oct 7 20:22:24 CEST 2005


I've been working a few different 64 bit machines with a few different 
installations. I'm trying to determine a foolproof way to see if when 
install_lib is
run libraries are installed in a lib or lib64 directory.

Here is what is the best that I've come up with so far, and it doesn't 
always work.

import distutils.sysconfig
libdir = distutils.sysconfig.get_python_lib()

Has anyone else dealt with this, and if so, how did they handle it?

Matt Rodriguez

More information about the Distutils-SIG mailing list