[Distutils] Question about libraries

Paul F Dubois paul@pfdubois.com
Mon Jun 10 13:53:02 2002


I want to use distutils to build an ordinary C library for subsequent
use in other parts of my build. I have a setup file that contains this
call to setup:

setup (name = "libcmds",
       ...
       libraries = [
                      ('cdms',
                          {'sources': sourcelist,
                           'macros': macros,
                           'include_dirs': include_dirs,
                           'library_dirs': library_dirs,
                          }
                      ),
                  ]
 This works and I can build the library libcdms.a, but it is put in
build/temp.linux-i686-2.2, hardly the kind of place I want to refer to
in other parts of my build. Is there a way to install it somewhere? Or
get back the name of the library file so that I can move it myself?