[Distutils] Question about libraries

Florent Rougon florent.rougon@free.fr
Mon Jun 10 15:08:01 2002


"Paul F Dubois" <paul@pfdubois.com> wrote:

>  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?

Hi,

I use the following shell command for one of my (unofficial) Debian
packages:

cp "build/lib`python -c \
      'import sys, distutils.util; \
       print \".%s-%s\" % \
         (distutils.util.get_platform(), sys.version[0:3])'`/_xmms.so" .

Not very elegant nor readable, but works for me. The part just after
"build/lib" yields the ".linux-i686-2.2" you seem to be looking for.

-- 
Florent