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

2008-02-11 Thread David Cournapeau
On Tue, 2008-02-12 at 16:05 +0900, David Cournapeau wrote: > On Mon, 2008-02-11 at 23:14 -0700, Damian Eads 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 co

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 23:14 -0700, Damian Eads 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

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 usin

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. I

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 o

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 o

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 p

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 > exa

[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 t

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 (h

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

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.

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

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 tel

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 orde

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

[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 int

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 th

[Numpy-discussion] [ANN] Release of the second PyTables video

2008-02-11 Thread Ivan Vilata i Balaguer
== Release of the second PyTables video == Carabos [1]_ is happy to announce the second of a series of videos dedicated to introducing the main features of PyTables to the public in a visual and easy to grasp manner: http:

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 acco

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 > > > >

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 >

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

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

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 th

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="merg

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

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 > floa

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_s

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_sr

[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" co