[Distutils] Absolute path library names

Brad Chapman Brad Chapman <chapmanb@arches.uga.edu>
Wed, 12 Jul 2000 08:37:36 -0400

Lee Taylor wrote:
> I'm using Distutils-0.9 on Linux with a setup file similar to
> setup (...
>       Extension('name', 
>       libraries=['pgs', 'ppc', '/usr/X11R6/lib/X11')
>       )
> And I'm getting the traceback

I'm not exactly sure if I know what you are trying to do, but 
hopefully the following might help...
    The 'libraries' key is only for listing libraries that will be 
linked in (ie. -lpgs -lppc, from your example) and the 'library_dirs' 
key is for listing library directories that will be looked in for the 
libraries to link (ie. -L/usr/X11R6/lib/X11). So, I believe your 
setup.py should look like:

setup (....
       ext_modules = 
         {'sources' : [ your c sources ],
          'libraries': ['pgs', 'ppc'],
          'library_dirs' : ['/usr/X11R6/lib/X11']

Hope this helps.