Re: [Numpy-discussion] String sort

2008-02-11 Thread Francesc Altet
A Monday 11 February 2008, Charles R Harris escrigué: I've attached my working _sortmodule.c.src file so you can fool with these different changes on your machines also. This is on top of current svn. Ok. In order to compare pears with pears, I've decided to create a standalone program in C

Re: [Numpy-discussion] String sort

2008-02-11 Thread Charles R Harris
On Feb 11, 2008 1:15 PM, Francesc Altet [EMAIL PROTECTED] wrote: A Monday 11 February 2008, Charles R Harris escrigué: I've attached my working _sortmodule.c.src file so you can fool with these different changes on your machines also. This is on top of current svn. Ok. In order to

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread Robert Kern
On Feb 11, 2008 3:49 AM, David Cournapeau [EMAIL PROTECTED] wrote: On Feb 11, 2008 5:38 PM, Robert Kern [EMAIL PROTECTED] wrote: On Feb 11, 2008 2:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I

Re: [Numpy-discussion] String sort

2008-02-11 Thread Charles R Harris
On Feb 11, 2008 4:06 AM, Francesc Altet [EMAIL PROTECTED] wrote: A Monday 11 February 2008, Francesc Altet escrigué: A Monday 11 February 2008, Charles R Harris escrigué: Mmm, comparing my new strncmp and the one that you have implemented in SVN, I've found a difference that can account for

Re: [Numpy-discussion] String sort

2008-02-11 Thread Charles R Harris
On Feb 11, 2008 2:58 AM, Francesc Altet [EMAIL PROTECTED] wrote: A Monday 11 February 2008, Charles R Harris escrigué: On Feb 8, 2008 5:29 AM, Francesc Altet [EMAIL PROTECTED] wrote: Hi, I'm a bit confused that the sort method of a string character doesn't allow a mergesort:

Re: [Numpy-discussion] Numpy-discussion Digest, Vol 17, Issue 20

2008-02-11 Thread matthew yeomans
matthew yeomans wrote: Thanks I been trying to compile a code that uses random,pylab and numpy with py2exe the code of setup.py(compiles mycode.py into mycode.exe) follows #Start here from distutils.core import setup import py2exe import pylab import numpy import glob

Re: [Numpy-discussion] Setting contents of buffer for array object

2008-02-11 Thread Anne Archibald
On 11/02/2008, Matthew Brett [EMAIL PROTECTED] wrote: I can also see that this could possibly be improved by using a for loop to iterate over the output elements, so that there was no need to duplicate the large input array, or perhaps a blocked iteration that duplicated arrays of modest

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread Charles R Harris
On Feb 11, 2008 7:10 PM, David Cournapeau [EMAIL PROTECTED] wrote: On Feb 11, 2008 5:40 PM, Charles R Harris [EMAIL PROTECTED] wrote: On Feb 11, 2008 1:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Damian Eads
David Cournapeau wrote: On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of finding out which flags are needed to compile extensions on the host platform.

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Robert Kern
On Feb 12, 2008 12:41 AM, Damian Eads [EMAIL PROTECTED] wrote: Robert Kern wrote: On Feb 12, 2008 12:14 AM, Damian Eads [EMAIL PROTECTED] wrote: David Cournapeau wrote: On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils,

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Damian Eads
Robert Kern wrote: On Feb 12, 2008 12:14 AM, Damian Eads [EMAIL PROTECTED] wrote: David Cournapeau wrote: On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Robert Kern
On Feb 12, 2008 12:14 AM, Damian Eads [EMAIL PROTECTED] wrote: David Cournapeau wrote: On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of finding out

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Robert Kern
On Feb 12, 2008 12:14 AM, Damian Eads [EMAIL PROTECTED] wrote: David Cournapeau wrote: On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of finding out

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread David Cournapeau
On Mon, 2008-02-11 at 22:50 -0700, Damian Eads wrote: Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of finding out which flags are needed to compile extensions on the host platform. There are many examples

[Numpy-discussion] f2py: sharing F90 module data between modules

2008-02-11 Thread Garry Willgoose
I have a suite of fortran modules that I want to wrap with f2py independently (so they appear to python as seperate imports) but where each module has access to another fortran module (which contains global data that is shared between the suite of fortran modules). I currently compile all

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread David Cournapeau
On Mon, 2008-02-11 at 20:42 -0700, Charles R Harris wrote: On Feb 11, 2008 7:10 PM, David Cournapeau [EMAIL PROTECTED] wrote: On Feb 11, 2008 5:40 PM, Charles R Harris [EMAIL PROTECTED] wrote: On Feb 11, 2008 1:21 AM, Robert

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread David Cournapeau
On Feb 11, 2008 5:40 PM, Charles R Harris [EMAIL PROTECTED] wrote: On Feb 11, 2008 1:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I put in for the setuptools develop command. In order to make

Re: [Numpy-discussion] String sort

2008-02-11 Thread Francesc Altet
A Monday 11 February 2008, Francesc Altet escrigué: A Monday 11 February 2008, Charles R Harris escrigué: That's with the current sort(kind='q') in svn, which uses the new string compare function but is otherwise the old default quicksort. The new string specific version of quicksort I'm

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread David Cournapeau
On Feb 11, 2008 5:38 PM, Robert Kern [EMAIL PROTECTED] wrote: On Feb 11, 2008 2:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I put in for the setuptools develop command. In order to make sure that

Re: [Numpy-discussion] Setting contents of buffer for array object

2008-02-11 Thread Matthew Brett
Hi, I can also see that this could possibly be improved by using a for loop to iterate over the output elements, so that there was no need to duplicate the large input array, or perhaps a blocked iteration that duplicated arrays of modest size would be better. But how can a single float per

[Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread Robert Kern
I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I put in for the setuptools develop command. In order to make sure that setuptools' develop works with numpy.distutils' build_src, we override the develop command to reinitialize the build_src command to

[Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Lou Pecora
I will be writing some C code that I will compile into a shared library (.so) on my MacOSX computer to use with ctypes. That code will be calling code from a (big) scientific numerical library (Gnu Scientific Library - GSL) to crunch the numbers. But I don't see how I incorporate that code

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Damian Eads
Dear Lou, You may want to try using distutils or setuputils, which makes compiling extensions much easier. It does the hard work of finding out which flags are needed to compile extensions on the host platform. There are many examples on the web on how to use distutils to build C extensions

Re: [Numpy-discussion] py2exe (was Numpy-discussion Digest, Vol 17, Issue 20)

2008-02-11 Thread Steven H. Rogers
matthew yeomans wrote: I tried so, I reduced everything example from pylab import plot from pylab import axis and so on I think I noticed is that when i call from numpy import array it confuses array from numpy to array module. If there a way how to tell py2exe that

Re: [Numpy-discussion] String sort

2008-02-11 Thread Francesc Altet
A Monday 11 February 2008, Charles R Harris escrigué: On Feb 8, 2008 5:29 AM, Francesc Altet [EMAIL PROTECTED] wrote: Hi, I'm a bit confused that the sort method of a string character doesn't allow a mergesort: s = numpy.empty(10, S10) s.sort(kind=merge) TypeError: desired

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread Robert Kern
On Feb 11, 2008 2:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I put in for the setuptools develop command. In order to make sure that setuptools' develop works with numpy.distutils' build_src, we

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread Charles R Harris
On Feb 11, 2008 1:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I put in for the setuptools develop command. In order to make sure that setuptools' develop works with numpy.distutils' build_src, we

Re: [Numpy-discussion] New bug with setup,py develop

2008-02-11 Thread David Cournapeau
On Feb 11, 2008 6:49 PM, David Cournapeau [EMAIL PROTECTED] wrote: On Feb 11, 2008 5:38 PM, Robert Kern [EMAIL PROTECTED] wrote: On Feb 11, 2008 2:21 AM, Robert Kern [EMAIL PROTECTED] wrote: I've just updated the SVN trunk to get the latest numscons merge. Something broke the support I