Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Fadhley Salim
April 2009 05:08 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 On Thu, Apr 16, 2009 at 7:43 PM, David Cournapeau courn...@gmail.com wrote: On Fri, Apr 17, 2009 at 12:25 AM, David Cournapeau courn...@gmail.com wrote: We need

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Fadhley Salim
-boun...@scipy.org] On Behalf Of David Cournapeau Sent: 17 April 2009 05:46 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 On Fri, Apr 17, 2009 at 1:38 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Apr 16, 2009 at 23:37, David Cournapeau courn

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Sturla Molden
On 4/15/2009 6:44 PM, Matthieu Brucher wrote: There is a Python limitation for the compiler. There is a common misunderstanding that only VS2003 can be used to compile extension objects for Python 2.5. Don't believe it. There is no Python limitation for the compiler. There is a Python

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread David Cournapeau
Sturla Molden wrote: On 4/15/2009 6:44 PM, Matthieu Brucher wrote: There is a Python limitation for the compiler. There is a common misunderstanding that only VS2003 can be used to compile extension objects for Python 2.5. Don't believe it. There is no Python limitation for the

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Sturla Molden
On 4/17/2009 10:50 AM, David Cournapeau wrote: I think Matthieu meant you have to use VS2003 as a MS compiler. Mingw is obviously fine, since that's how numpy binaries are built for quite a long time That is what I thought he meant as well, and it seems to be a widespread belief. The fact

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Gael Varoquaux
On Fri, Apr 17, 2009 at 11:48:57AM +0200, Sturla Molden wrote: I use this 32 bit mingw binary to build my Cython and f2py extensions. I works like a charm. I have licenses for Intel compilers at work, but I prefer gfortran 4.4. Could you elaborate on your reason. Gaƫl

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Sturla Molden
On 4/17/2009 11:50 AM, Gael Varoquaux wrote: Could you elaborate on your reason. Probably silly reasons though... I have a distutils.cfg file and a build system set up that works. I don't want to bother setting up a different build system when I already have one that works. I can use the

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-17 Thread Chris Barker
I know this is the wrong forum, but: Yet another reason Python itself needs a standard, supported way to handle package versioning. *sigh* -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
Robert Kern wrote: It is David's desire to distribute numpy builds with optimized BLASes that does not fit into eggs, not numpy. Plain numpy eggs are really straightforward. There may be a misunderstanding: I would not mind distributing something without optimized BLAS. Not using atlas at

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Robert Kern
On Thu, Apr 16, 2009 at 01:27, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Robert Kern wrote: It is David's desire to distribute numpy builds with optimized BLASes that does not fit into eggs, not numpy. Plain numpy eggs are really straightforward. There may be a misunderstanding: I

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
Fadhley Salim wrote: I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their product in .egg form for a Win32 platform - that means if I want eggs then I have to compile them myself. I think having a simple .exe

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Gael Varoquaux
On Thu, Apr 16, 2009 at 12:50:59AM -0500, Robert Kern wrote: PEAK's setuptools is fragile with complex packages. This is the core reason numpy is not distributed as an egg, as the implications on what numpy would have to do to 'fit' in an egg compromise numpy's instal quality (read: random

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
Robert Kern wrote: I have found that people are more willing to accept that they have to do something different to get a technically chalenging feature (i.e. use a particular installer to get a safe, optimized BLAS) than to accept that a relatively straightforward feature is not available at

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
David Cournapeau wrote: Robert Kern wrote: I have found that people are more willing to accept that they have to do something different to get a technically chalenging feature (i.e. use a particular installer to get a safe, optimized BLAS) than to accept that a relatively straightforward

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Robert Kern
On Thu, Apr 16, 2009 at 01:52, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: David Cournapeau wrote: Robert Kern wrote: I have found that people are more willing to accept that they have to do something different to get a technically chalenging feature (i.e. use a particular installer

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
Robert Kern wrote: easy_install is documented to be able to find and convert a bdist_wininst .exe on the fly, so I believe that should be sufficient. Yes, I've tried locally on a bdist_wininst exe, and easy_install could install it. I have not tested it from the network. It might be

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Gael Varoquaux
On Thu, Apr 16, 2009 at 04:02:01PM +0900, David Cournapeau wrote: What about just pushing the non optimized bdist_wininst installer on pypi ? With a clear note saying that they are non optimised. G. ___ Numpy-discussion mailing list

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Robert Kern
On Thu, Apr 16, 2009 at 02:02, David Cournapeau da...@ar.media.kyoto-u.ac.jp wrote: Robert Kern wrote: easy_install is documented to be able to find and convert a bdist_wininst .exe on the fly, so I believe that should be sufficient. Yes, I've tried locally on a bdist_wininst exe, and

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Fadhley Salim
-Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Pauli Virtanen Sent: 15 April 2009 20:55 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] Compiling for free on Windows32 I think it might work if you separate

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Fadhley Salim
To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 Hi Sal, On Wed, Apr 15, 2009 at 1:03 PM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: http://projects.scipy.org/numpy/ticket/1086 I filed this under numpy since that's

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread josef . pktd
On Thu, Apr 16, 2009 at 11:03 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: No joy yet - this time a completely different error. I just tried r6871 and r6872... http://pastebin.com/d4d240b36 do you have g77 included in mingw and on your path? Josef

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Fadhley Salim
To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 On Thu, Apr 16, 2009 at 00:45, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Wed, Apr 15, 2009 at 07:33:48PM +0100, Fadhley Salim wrote: We deploy on a very large number of computers in 5

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Fri, Apr 17, 2009 at 12:10 AM, josef.p...@gmail.com wrote: On Thu, Apr 16, 2009 at 11:03 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: No joy yet - this time a completely different error. I just tried r6871 and r6872... http://pastebin.com/d4d240b36 do you have g77 included in

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Fri, Apr 17, 2009 at 12:12 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I agree with Robert There should be no reason on earth why you cannot use an Egg to package Numpy. Actually, there is, although it is not really an egg deficiency. We use ATLAS as blas/lapack, and ATLAS

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Fadhley Salim
Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of David Cournapeau Sent: 16 April 2009 07:42 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 I think having a simple .exe installer

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Fadhley Salim
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of David Cournapeau Sent: 16 April 2009 07:50 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 Robert Kern wrote: I have found that people are more willing to accept that they have to do something

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
We need to be able to run both projects concurrently on the same grid. Setuptools + eggs allows this to happen. If we used .exe installers then we could only have one single version of any given dependancy at any time and so we would not be able to run the two projects in paralell. I think

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Thu, Apr 16, 2009 at 11:50 PM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I just installed the latest stable mingw, and made sure that the mingw bin directory is in my PATH. I used the command you suggested and got the following output: http://pastebin.com/m4aea512c Could you make

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Fri, Apr 17, 2009 at 12:25 AM, David Cournapeau courn...@gmail.com wrote: We need to be able to run both projects concurrently on the same grid. Setuptools + eggs allows this to happen. If we used .exe installers then we could only have one single version of any given dependancy at any time

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Charles R Harris
On Thu, Apr 16, 2009 at 7:43 PM, David Cournapeau courn...@gmail.comwrote: On Fri, Apr 17, 2009 at 12:25 AM, David Cournapeau courn...@gmail.com wrote: We need to be able to run both projects concurrently on the same grid. Setuptools + eggs allows this to happen. If we used .exe installers

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Thu, Apr 16, 2009 at 4:23 PM, Robert Kern robert.k...@gmail.com wrote: I think it will try to collect all of the possibilities by looking at PyPI and the download link, then decide on the best one. But it could be that if there are files on PyPI, it will only consider those. I don't know.

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread David Cournapeau
On Fri, Apr 17, 2009 at 1:38 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Apr 16, 2009 at 23:37, David Cournapeau courn...@gmail.com wrote: On Thu, Apr 16, 2009 at 4:23 PM, Robert Kern robert.k...@gmail.com wrote: I think it will try to collect all of the possibilities by looking at

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-16 Thread Robert Kern
On Thu, Apr 16, 2009 at 23:45, David Cournapeau courn...@gmail.com wrote: Since I am not an egg user myself, I wonder whether it would be useful to make numpy zip-safe ? Can it be done without numpy relying on setuptools, or do we have to use setuptools for pkg_resources (maybe pkg_resources

[Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their product in .egg form for a Win32 platform - that means if I want eggs then I have to compile them myself. At the moment my employer provides Visual Studio.Net 2003,

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Matthieu Brucher
] Compiling for free on Windows32 Hi, There is a Python limitation for the compiler. if you have 2.5 or less, you're stuck with VS2003, if you have 2.6, you can use 2008 (or 2005, I don't remember). If you use numscons, you can go with any of them (at your own risks). You can also use mingw

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
: [Numpy-discussion] Compiling for free on Windows32 Hi, There is a Python limitation for the compiler. if you have 2.5 or less, you're stuck with VS2003, if you have 2.6, you can use 2008 (or 2005, I don't remember). If you use numscons, you can go with any of them (at your own risks

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Thomas Heller
Fadhley Salim schrieb: So what is the official way to compile Numpy 1.3.0 for Python 2.4.x? If Visual Studio 2003 will not compile it and nothing else is intended to work, then surely nothing will work? That cannot be right. PS. Perhaps there is another way to do it... compiling for me is

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
! :-) -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Thomas Heller Sent: 15 April 2009 18:48 To: numpy-discussion@scipy.org Subject: Re: [Numpy-discussion] Compiling for free on Windows32 Fadhley Salim schrieb: So what is the official

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Matthieu Brucher
2009/4/15 Fadhley Salim fadhley.sa...@uk.calyon.com: So what is the official way to compile Numpy 1.3.0 for Python 2.4.x? If Visual Studio 2003 will not compile it and nothing else is intended to work, then surely nothing will work? That cannot be right. Mingw is used to compile numpy and

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Andrew Straw
Fadhley Salim wrote: Thomasm, What want is the current latest Numpy as a win32 .egg file for Python 2.4.4. I'm not bothered how I get there. We've been able to compile * Dont care how I make it as long as it works! Are you aware that the reason numpy is not distributed as an .egg is so

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Charles R Harris
On Wed, Apr 15, 2009 at 11:58 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: Thomasm, What want is the current latest Numpy as a win32 .egg file for Python 2.4.4. I'm not bothered how I get there. We've been able to compile numpy 1.1.1 on visual studio 2003 with no problems at all.

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
Mingw is used to compile numpy and scipy AFAIK. So if I just grab Mingw I should be able to compile the latest stuff with no problems? Will that work perfectly with my standard Python.org Cpython distribution? Why is exe files a problem ? We deploy on a very large number of computers in 5

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
...@scipy.org] On Behalf Of Andrew Straw Sent: 15 April 2009 19:31 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 Fadhley Salim wrote: Thomasm, What want is the current latest Numpy as a win32 .egg file for Python 2.4.4. I'm not bothered how I get

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Charles R Harris Sent: 15 April 2009 19:32 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 On Wed, Apr 15, 2009 at 11:58 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Charles R Harris
Hi Sal, On Wed, Apr 15, 2009 at 12:37 PM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: Chuck, I'm not all that familiar with the bug reporting process but if you were to point me to the relevant bug tracker I'd be delighted to file an issue. If I could get somebody to fix this

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Fadhley Salim
From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Charles R Harris Sent: 15 April 2009 20:01 To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] Compiling for free on Windows32 Hi Sal, On Wed, Apr 15

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread David Cournapeau
On Thu, Apr 16, 2009 at 1:17 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their product in .egg form for a Win32 platform - that means if I want eggs then I have

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread josef . pktd
On Wed, Apr 15, 2009 at 3:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Apr 16, 2009 at 1:17 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Charles R Harris
On Wed, Apr 15, 2009 at 1:17 PM, David Cournapeau courn...@gmail.comwrote: On Thu, Apr 16, 2009 at 1:17 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy and Scipy do not make official releases of their

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Pauli Virtanen
Wed, 15 Apr 2009 15:42:05 -0400, josef.pktd wrote: On Wed, Apr 15, 2009 at 3:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Apr 16, 2009 at 1:17 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I've been asked to provide Numpy Scipy as python egg files. Unfortunately Numpy

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread josef . pktd
On Wed, Apr 15, 2009 at 3:54 PM, Pauli Virtanen p...@iki.fi wrote: Wed, 15 Apr 2009 15:42:05 -0400, josef.pktd wrote: On Wed, Apr 15, 2009 at 3:17 PM, David Cournapeau courn...@gmail.com wrote: On Thu, Apr 16, 2009 at 1:17 AM, Fadhley Salim fadhley.sa...@uk.calyon.com wrote: I've been asked

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread william ratcliff
Hi! What I do is make a distutils.cfg file and put in the $PYTHONHOME/Lib/distutils directory (for me, c:\python25\lib\distutils) and then it will use mingw32 for the compilation. I've attached the one I use. Cheers, William On Wed, Apr 15, 2009 at 4:06 PM, josef.p...@gmail.com wrote: On

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Charles R Harris
Hi Sal, On Wed, Apr 15, 2009 at 1:03 PM, Fadhley Salim fadhley.sa...@uk.calyon.comwrote: http://projects.scipy.org/numpy/ticket/1086 I filed this under numpy since that's what I am trying to compile. Please feel free to correct if you think I've mis-described the fault. I'm heading home

Re: [Numpy-discussion] Compiling for free on Windows32

2009-04-15 Thread Robert Kern
On Thu, Apr 16, 2009 at 00:45, Gael Varoquaux gael.varoqu...@normalesup.org wrote: On Wed, Apr 15, 2009 at 07:33:48PM +0100, Fadhley Salim wrote: We deploy on a very large number of computers in 5 countries. PEAK's Setuptools gives us the ability to do all this deployment automatically. If we