Re: [Numpy-discussion] numpy.distutils issue

2016-08-24 Thread Charles R Harris
On Wed, Aug 24, 2016 at 5:05 PM, Charles R Harris wrote: > > > On Wed, Aug 24, 2016 at 1:41 PM, Pavlyk, Oleksandr < > oleksandr.pav...@intel.com> wrote: > >> Hi All, >> >> >> >> According to the documentation page: >> >> >> >>http://docs.scipy.org/doc/numpy/reference/distutils.html >> >> >> >

Re: [Numpy-discussion] numpy.distutils issue

2016-08-24 Thread Charles R Harris
On Wed, Aug 24, 2016 at 1:41 PM, Pavlyk, Oleksandr < oleksandr.pav...@intel.com> wrote: > Hi All, > > > > According to the documentation page: > > > >http://docs.scipy.org/doc/numpy/reference/distutils.html > > > > Function add_library allows the following keywords: > > extra_f77_compile

[Numpy-discussion] numpy.distutils issue

2016-08-24 Thread Pavlyk, Oleksandr
Hi All, According to the documentation page: http://docs.scipy.org/doc/numpy/reference/distutils.html Function add_library allows the following keywords: extra_f77_compiler_args extra_f90_compiler_args however setting them seem to have no effect for my extension. Digging deeper,

Re: [Numpy-discussion] numpy.distutils, lapack, and cython

2012-09-28 Thread Robert Kern
On Fri, Sep 28, 2012 at 9:45 AM, Nathaniel Smith wrote: > Hi all, > > I've gotten a pull request for scikits-sparse to switch it to using > numpy.distutils: > https://github.com/njsmith/scikits-sparse/pull/2 > > Overall this seems fair enough, finding libraries is a pain and > numpy.distutils ha

Re: [Numpy-discussion] numpy.distutils, lapack, and cython

2012-09-28 Thread Matthew Brett
Hi, On Fri, Sep 28, 2012 at 3:45 PM, Nathaniel Smith wrote: > Hi all, > > I've gotten a pull request for scikits-sparse to switch it to using > numpy.distutils: > https://github.com/njsmith/scikits-sparse/pull/2 > > Overall this seems fair enough, finding libraries is a pain and > numpy.distuti

[Numpy-discussion] numpy.distutils, lapack, and cython

2012-09-28 Thread Nathaniel Smith
Hi all, I've gotten a pull request for scikits-sparse to switch it to using numpy.distutils: https://github.com/njsmith/scikits-sparse/pull/2 Overall this seems fair enough, finding libraries is a pain and numpy.distutils has that knowledge. 1) What's the proper way to find lapack using numpy.

Re: [Numpy-discussion] numpy.distutils quirk

2011-10-19 Thread Robert Cimrman
On 10/19/11 16:54, Robert Cimrman wrote: > On 10/18/11 22:13, Ralf Gommers wrote: >> On Tue, Oct 11, 2011 at 4:59 PM, Robert Cimrman wrote: >> >>> Hi, >>> >>> I have now spent several hours hunting down a major slowdown of my code >>> caused >>> (apparently) by using config.add_library() for a re

Re: [Numpy-discussion] numpy.distutils quirk

2011-10-19 Thread Robert Cimrman
On 10/18/11 22:13, Ralf Gommers wrote: > On Tue, Oct 11, 2011 at 4:59 PM, Robert Cimrman wrote: > >> Hi, >> >> I have now spent several hours hunting down a major slowdown of my code >> caused >> (apparently) by using config.add_library() for a reusable part of C source >> files instead of just co

Re: [Numpy-discussion] numpy.distutils quirk

2011-10-18 Thread Ralf Gommers
On Tue, Oct 11, 2011 at 4:59 PM, Robert Cimrman wrote: > Hi, > > I have now spent several hours hunting down a major slowdown of my code > caused > (apparently) by using config.add_library() for a reusable part of C source > files instead of just config.add_extension(). > > The reason of the slow

[Numpy-discussion] numpy.distutils quirk

2011-10-11 Thread Robert Cimrman
Hi, I have now spent several hours hunting down a major slowdown of my code caused (apparently) by using config.add_library() for a reusable part of C source files instead of just config.add_extension(). The reason of the slowdown was different, but hard to discern, naming of options and silen

Re: [Numpy-discussion] numpy.distutils

2010-10-11 Thread David
On 10/12/2010 03:39 AM, Charles Doutriaux wrote: > Hi David, > > The behaviour is there in regular distutils, it is apparently a known > bug, I'm copy/pasting their answer in there for information. I saw the discussion, thanks for the update. cheers, David _

Re: [Numpy-discussion] numpy.distutils

2010-10-11 Thread Charles Doutriaux
Hi David, The behaviour is there in regular distutils, it is apparently a known bug, I'm copy/pasting their answer in there for information. thanks, C. Answer (from Tarek Ziade): This is a regression I introduced to fix the fact that the .so are not rebuilt we you do subtle changes in your p

Re: [Numpy-discussion] numpy.distutils

2010-10-07 Thread David Cournapeau
On Fri, Oct 8, 2010 at 7:40 AM, Charles Doutriaux wrote: > > Did anybody else noticed this? Anybody know what changed (the fact that > it's since Python 2.7 make me think it might be pure distutils related) Could you check whether you still see the issue without using numpy.distutils ? I actuall

[Numpy-discussion] numpy.distutils

2010-10-07 Thread Charles Doutriaux
Hi, I'm not sure if this is a numpy.distutils or a regular distutils issue so please excuse me if it doesn't belong here. I 'm using numpy 1.4.1 and I have a C extension (using numpy arrays) that I built with numpy. When I'm debugging I frequently have to rebuild. It use to rebuild only the C

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
On 30-Mar-10, at 5:02 AM, Dag Sverre Seljebotn wrote: > Well, you can pass -fdefault-real-8 and then write .pyf headers where > real(8) is always given explicitly. Okay, the answer (without setting the F77 environment variable) is basically to expect real-8's in the .pyf file and compile the w

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
On 30-Mar-10, at 2:14 PM, David Warde-Farley wrote: > Hey Dag, > > On 30-Mar-10, at 5:02 AM, Dag Sverre Seljebotn wrote: > >> Well, you can pass -fdefault-real-8 and then write .pyf headers where >> real(8) is always given explicitly. > > > Actually I've gotten it to work this way, with real(8) i

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread David Warde-Farley
Hey Dag, On 30-Mar-10, at 5:02 AM, Dag Sverre Seljebotn wrote: > Well, you can pass -fdefault-real-8 and then write .pyf headers where > real(8) is always given explicitly. Actually I've gotten it to work this way, with real(8) in the wrappers. BUT... for some reason it requires me to set the

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: > David Warde-Farley wrote: >> Hi, >> >> In my setup.py, I have >> from numpy.distutils.misc_util import Configuration >> >> fflags= '-fdefault-real-8 -ffixed-form' >> config = Configuration( >> 'foo', >> parent_package=None, >> top_path=None, >> f2py

Re: [Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-30 Thread Dag Sverre Seljebotn
David Warde-Farley wrote: > Hi, > > In my setup.py, I have > from numpy.distutils.misc_util import Configuration > > fflags= '-fdefault-real-8 -ffixed-form' > config = Configuration( > 'foo', > parent_package=None, > top_path=None, > f2py_options='--f77flags=\'%s\' --f90flags=\'

[Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

2010-03-29 Thread David Warde-Farley
Hi, In my setup.py, I have from numpy.distutils.misc_util import Configuration fflags= '-fdefault-real-8 -ffixed-form' config = Configuration( 'foo', parent_package=None, top_path=None, f2py_options='--f77flags=\'%s\' --f90flags=\'%s\'' % (fflags, fflags) ) However I am sti

Re: [Numpy-discussion] numpy.distutils and shared libraries

2009-01-30 Thread Brian Granger
>> I am using config.add_library to build a c++ library that I will link >> into some Cython extensions. This is working fine and generating a .a >> library for me. However, I need a shared library instead. Is this >> possible with numpy.distutils or will I need something like numscons? > > nums

Re: [Numpy-discussion] numpy.distutils and shared libraries

2009-01-30 Thread Robert Kern
On Fri, Jan 30, 2009 at 18:13, Brian Granger wrote: > Hi, > > 2 ?'s about numpy.distutils: > > 1. > > I am using config.add_library to build a c++ library that I will link > into some Cython extensions. This is working fine and generating a .a > library for me. However, I need a shared library i

[Numpy-discussion] numpy.distutils and shared libraries

2009-01-30 Thread Brian Granger
Hi, 2 ?'s about numpy.distutils: 1. I am using config.add_library to build a c++ library that I will link into some Cython extensions. This is working fine and generating a .a library for me. However, I need a shared library instead. Is this possible with numpy.distutils or will I need someth

[Numpy-discussion] numpy.distutils problem with py2app/py2exe?

2008-06-28 Thread Zachary Pincus
Hello all, I've noticed that py2app and py2exe work strangely on my project, which (having fortran code) is driven by the numpy distutils. Now, these two distutils commands need to peek into the build/lib. [whatever] directories to grab the files to package up. Indeed, the docs for py2exe a

Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread Pearu Peterson
On Sun, May 18, 2008 1:14 pm, David Cournapeau wrote: > Hi, > > I would like to be able to build a f2py extension in a subdir with > distutils, that is: > > config.add_extension('foo/bar', source = ['foo/bar.pyf']) A safe approach would be to create a foo/setup.py that contains config.add_ex

Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread David Cournapeau
Robert Kern wrote: > > config.add_extension('foo.bar', source=['foo/bar.pyf']) > Duh, should have thought about that. thanks, David ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discuss

Re: [Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread Robert Kern
On Sun, May 18, 2008 at 5:14 AM, David Cournapeau <[EMAIL PROTECTED]> wrote: > Hi, > >I would like to be able to build a f2py extension in a subdir with > distutils, that is: > > config.add_extension('foo/bar', source = ['foo/bar.pyf']) > > But it does not work right now because of the way nump

[Numpy-discussion] numpy.distutils: building a f2py in a subdir

2008-05-18 Thread David Cournapeau
Hi, I would like to be able to build a f2py extension in a subdir with distutils, that is: config.add_extension('foo/bar', source = ['foo/bar.pyf']) But it does not work right now because of the way numpy.distutils finds the name of the extension. Replacing: ext_name = extension.name.spli

Re: [Numpy-discussion] numpy.distutils bug, fix, comments?

2008-03-08 Thread Robert Kern
On Sat, Mar 8, 2008 at 4:10 PM, Matthew Brett <[EMAIL PROTECTED]> wrote: > Hi, > > I think I found a bug in numpy/distutils/ccompiler.py - and wanted to > check that no-one has any objections before I fix it. > > These lines (390ff distutils.ccompiler.py) > > for _cc in ['msvc', 'bcpp', 'cygwi

[Numpy-discussion] numpy.distutils bug, fix, comments?

2008-03-08 Thread Matthew Brett
Hi, I think I found a bug in numpy/distutils/ccompiler.py - and wanted to check that no-one has any objections before I fix it. These lines (390ff distutils.ccompiler.py) for _cc in ['msvc', 'bcpp', 'cygwinc', 'emxc', 'unixc']: _m = sys.modules.get('distutils.'+_cc+'compiler') if _m

Re: [Numpy-discussion] numpy.distutils does not output compilation warning on win32 ?

2008-01-21 Thread David Cournapeau
Pearu Peterson wrote: > Hi, > > If I remember correctly then the warnings were disabled because > when compiling numpy/scipy on windows there were *lots* of > warnings, especially for pyrex generated sources. > Yes, that's certainly one of the thing I intend to improve with numscons :) (as an a

Re: [Numpy-discussion] numpy.distutils does not output compilation warning on win32 ?

2008-01-21 Thread Pearu Peterson
Hi, If I remember correctly then the warnings were disabled because when compiling numpy/scipy on windows there were *lots* of warnings, especially for pyrex generated sources. When there is an error, all warnings will be shown. Hmm, and on linux the warnings should also be shown (this actually de

[Numpy-discussion] numpy.distutils does not output compilation warning on win32 ?

2008-01-20 Thread David Cournapeau
Hi, I noticed a strange behaviour with distutils: when compiling C code on windows (using mingw), the compilation warning are not output on the console. For example, umathmodule.c compilation emits the following warnings: numpy\core\src\umathmodule.c.src:128: warning: static declaration of

[Numpy-discussion] numpy.distutils, system_info and dll/exp/lib

2007-05-31 Thread David Cournapeau
Hi, In one of my package, I use numpy.distutils.system_info to detect a C library. This works well on linux and Mac OS X, but on windows, the library is not detected if only the dll is present. If the .lib is there, then it is detected; the dll itself works OK (I can use it from ctypes nor

Re: [Numpy-discussion] numpy.distutils improvements (was Re: NumPy 1.0.3 release next week)

2007-05-18 Thread Charles R Harris
Hi Travis, On 5/18/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: Pearu Peterson wrote: >Hi Travis, > >I have pretty much completed work with > > http://projects.scipy.org/scipy/numpy/ticket/522 > >that is about using proper compilers/linkers for >individual extension modules instead of usi

Re: [Numpy-discussion] numpy.distutils improvements (was Re: NumPy 1.0.3 release next week)

2007-05-18 Thread Travis Oliphant
Pearu Peterson wrote: >Hi Travis, > >I have pretty much completed work with > > http://projects.scipy.org/scipy/numpy/ticket/522 > >that is about using proper compilers/linkers for >individual extension modules instead of using the >one compiler/linker set for all extension modules >in distribut

[Numpy-discussion] numpy.distutils improvements (was Re: NumPy 1.0.3 release next week)

2007-05-18 Thread Pearu Peterson
Hi Travis, I have pretty much completed work with http://projects.scipy.org/scipy/numpy/ticket/522 that is about using proper compilers/linkers for individual extension modules instead of using the one compiler/linker set for all extension modules in distribution - this allows one to define F

[Numpy-discussion] numpy.distutils

2007-05-09 Thread Mike Beachy
Hi all - I've been trying to set up configuration files to standardize a local 1.02numpy installation and have run into a problem with the intel compiler package. If I try python setup.py config_fc --fcompiler=intel build_ext (from the top level numpy-1.0.2 directory) I get the following failur

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