[Distutils] Query distutils for directory names

Bill Spotz wfspotz at sandia.gov
Mon Sep 20 18:33:58 CEST 2004


Is there a way to query distutils to give me the name of the lib and/or 
temp directories (i.e., on my machine, 
build/lib.darwin-7.5.0-PowerMacintosh-2.3 and 
build/temp.darwin-7.5.0-PowerMacintosh-2.3) that distutils creates 
during its build process?  I can't find anything in the documentation.

This would be useful for telling test scripts where to find the local 
versions of the module(s), as well as for linking to SWIG runtime 
libraries that I would like to have distutils compile.

I wrote some usable python code that manually concatenates the pieces 
together, put I do not trust its portability.

Thanks

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-5451      **
** Albuquerque, NM 87185-0316    Email: wfspotz at sandia.gov **




More information about the Distutils-SIG mailing list