[Distutils] Re: -I paths and ext_modules

Randall Hopper aa8vb@yahoo.com
Mon, 05 Jun 2000 13:32:56 -0400


Greg Ward:
 |On 02 June 2000, Randall Hopper said:
 |> I need to get a -I path on the cc command line (and a -L/-rpath on the
 |> linker line).  Is there a way to do this with the current version (portably
 |> or UNIX-specific; either one)?
 |
 |Just put 'include_dirs' and 'library_dirs' elements in dictionaries at
 |the bottom of the 'ext_modules' list-of-tuples-of-dictionaries.  Eg. see 
 |examples/mxdatetime_setup.py:
 |
 |       ext_modules = [('DateTime.mxDateTime.mxDateTime',
 |                       { 'sources': ['mxDateTime/mxDateTime.c'],
 |                         'include_dirs': ['mxDateTime'],
 |                       }
 |                     )]
 |
 |'library_dirs' is similar.

Thanks.  I've got it packaged and ready to ship with Distutils 15.3.

I'll try it on a few folks tonight and see how they do.

-- 
Randall Hopper
aa8vb@yahoo.com