[Distutils] Re: [Pythonmac-SIG] vecLib Framework on the Mac and distutils

Bill Spotz wfspotz at sandia.gov
Wed Dec 17 17:26:39 EST 2003

Wow, that did it.  That never would have occurred to me.  Thanks.

On Wednesday, December 17, 2003, at 01:30  PM, Jack Jansen wrote:

> On 17-dec-03, at 19:16, Bill Spotz wrote:
>> I am hoping someone will be able to shed some light on this strange 
>> problem I'm having.
>> I am trying to develop a C++ extension to python that must link with 
>> LAPACK.  I am doing my development on the Mac, so I want to link with 
>> -framework veclib.
>> OS: Mac OS X 10.2.8
>> python: 2.3 (via fink)
>> gcc: 3.1
>> I am using distutils to build the extension, and assign ["-framework 
>> veclib -lSystem"] to the extra_link_args argument of the setup() 
>> command in setup.py.  However, the resulting extension library built 
>> by distutils does not recognize the LAPACK routines.
> I always use constructs like ["-framework", "veclib", "-lSystem"]. 
> Could it be that by passing it as a single string it is somehow passed 
> to the linker as a single argument?
> --
> Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
> If I can't dance I don't want to be part of your revolution -- Emma 
> Goldman

** Bill Spotz                                              **
** Sandia National Laboratories  Voice: (505)845-0170      **
** P.O. Box 5800                 Fax:   (505)284-5451      **
** Albuquerque, NM 87185-0316    Email: wfspotz at sandia.gov **

More information about the Distutils-SIG mailing list