Re: [Numpy-discussion] Announcing toydist, improving distribution and packaging situation

2010-01-01 Thread Pierre Raybaut
Hi David, Following your announcement for the 'toydist' module, I think that your project is very promising: this is certainly a great idea and it will be very controversial but that's because people expectactions are great on this matter (distutils is so disappointing indeed). Anyway, if I may

[Numpy-discussion] arrays and __eq__

2010-01-01 Thread Keith Goodman
I have a class that stores some of its data in a numpy array. I can check for equality when myclass is on the left and an array is on the right: m = myclass([1,2,3]) a = np.asarray([9,2,3]) m == a myclass([False, True, True], dtype=bool) But I get the wrong answer when an array is on

[Numpy-discussion] is it safe to change the dtype without rebuilding the array?

2010-01-01 Thread Ernest Adrogué
Hi, I find myself doing this: In [244]: x Out[244]: array([[0, 1, 2], [3, 4, 5], [6, 7, 8]]) In [245]: y=x.copy() In [251]: y.dtype.char Out[251]: 'l' In [252]: dt=np.dtype([('a','l'),('b','l'),('c','l')]) In [254]: y.dtype=dt Is it okay? The problem is that it's not easy to

Re: [Numpy-discussion] is it safe to change the dtype without rebuilding the array?

2010-01-01 Thread Robert Kern
2010/1/1 Ernest Adrogué eadro...@gmx.net: Hi, I find myself doing this: In [244]: x Out[244]: array([[0, 1, 2],       [3, 4, 5],       [6, 7, 8]]) In [245]: y=x.copy() In [251]: y.dtype.char Out[251]: 'l' In [252]: dt=np.dtype([('a','l'),('b','l'),('c','l')]) In [254]: y.dtype=dt

Re: [Numpy-discussion] [SciPy-dev] Announcing toydist, improving distribution and packaging situation

2010-01-01 Thread David Cournapeau
On Thu, Dec 31, 2009 at 6:06 AM, Darren Dale dsdal...@gmail.com wrote: I should defer to the description of extras in the setuptools documentation. It is only a few paragraphs long:

Re: [Numpy-discussion] [SciPy-User] Announcing toydist, improving distribution and packaging situation

2010-01-01 Thread David Cournapeau
On Fri, Jan 1, 2010 at 10:43 PM, Pierre Raybaut cont...@pythonxy.com wrote: Hi David, Following your announcement for the 'toydist' module, I think that your project is very promising: this is certainly a great idea and it will be very controversial but that's because people expectactions are

Re: [Numpy-discussion] [SciPy-dev] Announcing toydist, improving distribution and packaging situation

2010-01-01 Thread Gael Varoquaux
On Sat, Jan 02, 2010 at 11:32:00AM +0900, David Cournapeau wrote: [snip] - supporting different variants of the same package in the dependency graph at install time [snip] The second issue is more challenging. It complicates the dependency handling quite a bit, and may cause difficult