[Distutils] Question about libraries
Paul F Dubois
paul@pfdubois.com
Tue Jun 11 11:13:02 2002
Yes, there would be no problem if I wanted to build the library solely
for use in a single invocation of distutils. But I have three separate
packages, each with their own setup.py, and they all need to share the
same library.
> -----Original Message-----
> From: Thomas Heller [mailto:thomas.heller@ion-tof.com]
> Sent: Tuesday, June 11, 2002 7:37 AM
> To: Paul F Dubois; distutils-sig@python.org
> Subject: Re: [Distutils] Question about libraries
>
>
> > 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.
>
> Isn't this directory automatically appended to the
> library_dirs by distutils?
>
> Thomas
>