[Distutils] install_lib lib versus lib64

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


Greetings,

I've been working a few different 64 bit machines with a few different 
python
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()
libdir.find('lib64')

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

Thanks,
Matt Rodriguez




More information about the Distutils-SIG mailing list