Re: [Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-16 Thread David Cournapeau
Albert Strasheim wrote: > > > You might try numpy.ctypeslib.load_library. I tried this some time ago, and I couldn't make it work as I wanted (cannot remember what exactly, this was like 6 months ago), and I found more reliable to detect the library when installing the package, and hardcoding th

Re: [Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-15 Thread Albert Strasheim
Hello all - Original Message - From: "David Cournapeau" <[EMAIL PROTECTED]> To: "Discussion of Numerical Python" Sent: Friday, March 16, 2007 6:51 AM Subject: Re: [Numpy-discussion] numpy.distutils, windows dll vs lib > Robert Kern wrote: >> Davi

Re: [Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-15 Thread Robert Kern
David Cournapeau wrote: > I don't use the library for linking: I only need to be able to load it > dynamically through ctypes. What I did is simply overriding the > calc_info method, in which I try to detect both library and header > files. For the library, I do the following: > > # Look for t

Re: [Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-15 Thread David Cournapeau
Robert Kern wrote: > David Cournapeau wrote: >> Hi, >> >> recently, I got some problems detecting a dynamic library (dll) with >> numpy.distutils. Basically, I have a package which uses a class derived >> from system_info from numpy.distutils to detect a dll I use through ctypes. >> If on

Re: [Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-15 Thread Robert Kern
David Cournapeau wrote: > Hi, > > recently, I got some problems detecting a dynamic library (dll) with > numpy.distutils. Basically, I have a package which uses a class derived > from system_info from numpy.distutils to detect a dll I use through ctypes. > If only the dll is present, my

[Numpy-discussion] numpy.distutils, windows dll vs lib

2007-03-15 Thread David Cournapeau
Hi, recently, I got some problems detecting a dynamic library (dll) with numpy.distutils. Basically, I have a package which uses a class derived from system_info from numpy.distutils to detect a dll I use through ctypes. If only the dll is present, my numpy.distutils.system_info derived