Re: [Numpy-discussion] distutils -- compiling extension twice, two sets of compiler settings

2009-07-28 Thread Lisandro Dalcin
Would two brand new .cpp files abusing of #include do the trick? For example, for '_CCG_dmodule': //file: CCG_dmodule.cxx #define USE_DOUBLE 1 #include "CCG_caller.cpp" #include "ccg_funct.cpp" #include "ccg.cpp" #include "CCG_d_wrap.cxx" Then you can use: ext_ccg_d = Extension('_CCG_dmodule',

Re: [Numpy-discussion] installation issue with a non-standard location of a python build

2009-07-28 Thread David Cournapeau
On Wed, Jul 29, 2009 at 2:38 AM, Daniel Wheeler wrote: > -Wall -Wstrict-prototypes -fPIC > > compile options: '-c' > gcc: _configtest.c > gcc: error trying to exec 'cc1': execvp: No such file or directory > gcc: error trying to exec 'cc1': execvp: No such file or directory That's your problem righ

[Numpy-discussion] nans and sort orders.

2009-07-28 Thread Charles R Harris
Hi All, I've changed the sort routines so that they sort nans to the end. The sort order is now Real types: [R, nan] Complex types: [R + Rj, R + nanj, nan + Rj, nan + nanj] Where R stands for the usual extended range of reals, i.e. [-inf, finite, +inf] and when two complex numbers have the same

Re: [Numpy-discussion] [SciPy-user] Numpy/Scipy and the Python African Tour

2009-07-28 Thread Fernando Perez
Hi Emanuelle, On Thu, Jul 23, 2009 at 7:17 AM, Emmanuelle Gouillart wrote: > Dear users of Numpy and Scipy, > > here is an informal report on the last event of the Python African Tour, > which took place in Dakar (Senegal) on July 6-10th. It might interest Many thanks for this great post, I am ve

Re: [Numpy-discussion] installation issue with a non-standard location of a python build

2009-07-28 Thread Daniel Wheeler
On Tue, Jul 28, 2009 at 12:02 PM, David Cournapeau wrote: > On Wed, Jul 29, 2009 at 12:38 AM, Daniel > Can you post the full output of python setup.py build ? Here it is: Running from numpy source directory. non-existing path in 'numpy/distutils': 'site.cfg' F2PY Version 2 blas_opt_info: blas_mkl

[Numpy-discussion] Naming of OS-X binaries

2009-07-28 Thread Christopher Barker
Hi folks, I just went to get the latest stable build, and found that there was this for Python 2.5: numpy-1.3.0-py2.5-macosx10.5.dmg However, as far as I can tell, that is really built for the python.org framework build of python, which works on 10.3.9 and above, not just 10.5. I do know that

Re: [Numpy-discussion] installation issue with a non-standard location of a python build

2009-07-28 Thread David Cournapeau
On Wed, Jul 29, 2009 at 12:38 AM, Daniel Wheeler wrote: > Hi, > > I'm having an installation issue building numpy 1.3.0 using python > 2.6.2 which has been built in my local area in a non-standard place > and was configured with --prefix=/users/wd15/usr/i686/4.0. When I run > numpy's config ("pytho

[Numpy-discussion] installation issue with a non-standard location of a python build

2009-07-28 Thread Daniel Wheeler
Hi, I'm having an installation issue building numpy 1.3.0 using python 2.6.2 which has been built in my local area in a non-standard place and was configured with --prefix=/users/wd15/usr/i686/4.0. When I run numpy's config ("python setup.py config") everything seems to be fine. However, when I ru

Re: [Numpy-discussion] Commit privileges for Darren Dale

2009-07-28 Thread Darren Dale
On Tue, Jul 28, 2009 at 10:59 AM, David Cournapeau wrote: > On Tue, Jul 28, 2009 at 9:47 PM, Darren Dale wrote: >> On Mon, Jul 27, 2009 at 12:06 AM, Charles R >> Harris wrote: >>> Hi All, >>> >>> In case it got buried in the thread, Darren is asking for commit privileges. >>> I think it's a good id

Re: [Numpy-discussion] Commit privileges for Darren Dale

2009-07-28 Thread David Cournapeau
On Tue, Jul 28, 2009 at 9:47 PM, Darren Dale wrote: > On Mon, Jul 27, 2009 at 12:06 AM, Charles R > Harris wrote: >> Hi All, >> >> In case it got buried in the thread, Darren is asking for commit privileges. >> I think it's a good idea. > > Thank you for saying so. What can I do to help move this t

Re: [Numpy-discussion] Commit privileges for Darren Dale

2009-07-28 Thread Charles R Harris
On Tue, Jul 28, 2009 at 6:47 AM, Darren Dale wrote: > On Mon, Jul 27, 2009 at 12:06 AM, Charles R > Harris wrote: > > Hi All, > > > > In case it got buried in the thread, Darren is asking for commit > privileges. > > I think it's a good idea. > > Thank you for saying so. What can I do to help mov

Re: [Numpy-discussion] Commit privileges for Darren Dale

2009-07-28 Thread Stéfan van der Walt
2009/7/27 Charles R Harris : > In case it got buried in the thread, Darren is asking for commit privileges. > I think it's a good idea. I agree. Unfortunately, I can't modify the svn-password file due to permissions, so I'll CC Peter Wang who has root access. Peter: we'd like to give SVN access

Re: [Numpy-discussion] Commit privileges for Darren Dale

2009-07-28 Thread Darren Dale
On Mon, Jul 27, 2009 at 12:06 AM, Charles R Harris wrote: > Hi All, > > In case it got buried in the thread, Darren is asking for commit privileges. > I think it's a good idea. Thank you for saying so. What can I do to help move this to the point where I can actually start committing? I would like

[Numpy-discussion] distutils -- compiling extension twice, two sets of compiler settings

2009-07-28 Thread Sebastian Haase
Hi, maybe someone here could help me by using distutils: my problem is that I have some C++ files that I need to get compiled twice, first to make a "singleFloat"-module using gcc -DUSE_DOUBLE=0 and then to make the "doubleFloat"-module using gcc -DUSE_DOUBLE=1. Apparently distutils recognises

Re: [Numpy-discussion] New test failures

2009-07-28 Thread David Cournapeau
Hi Nils, Nils Wagner wrote: numpy.__version__ > '1.4.0.dev7270' > Python 2.5.1 on 64-bit box > > > AssertionError: Items are not equal: > ACTUAL: [[-0.28785625-0.21230127j 2.13664055+3.62986112j] > [ 0.20296739+0.16528448j 4.73750353+6.42351294j]] > DESIRED: [[-0.28785625-0.