[Numpy-discussion] Is there a known problem compiling numpy with VC7?

Travis Oliphant oliphant.travis at ieee.org
Tue Feb 7 11:09:06 EST 2006

Tim Hochberg wrote:

> A couple of more minor issues.
>    1. numpy/random/mtrand/distributions.c needs M_PI defined if is not 
> already. I used the def from umathmodule.c:
> #ifndef M_PI
> #define M_PI 3.14159265358979323846264338328
> #endif
>    2. The math library m.lib was hardcoded into numpy/random/setup.py. 
> I simply replaced ['m'] with [], which is probably not right in 
> general. It should probably be grabbed from config.h.
>    3. This made it through all the compiling, but blew up on linking 
> randomkit because sever CryptXXX functions were not defined. I added 
> 'Advapi32' to the libraries list. (In total libraries went from ['m'] 
> to ['Advapi32'].
> With this I got a full compile. I successfully imported numpy and 
> added a couple of matrices.  Hooray!
> Is there a way to run it through some regression tests? That seems 
> like it should be the next step.
Let's see if we can't fix up the setup.py file to handle this common 
platform correctly....

import numpy


More information about the NumPy-Discussion mailing list