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

Travis Oliphant oliphant.travis at ieee.org
Thu Feb 9 12:33:06 CST 2006

Tim Hochberg wrote:

> There's a shallow error in system_info.py
>  File "C:\Documents and 
> Settings\End-user\Desktop\numpy\svn\numpy\numpy\distutils\system_info.py", 
> line 118, in ?
>    default_lib_dirs = ['C:\\',
> NameError: name 'join' is not defined
> Just replacing join with os.path.join fixed that. However, it didn't 
> help. I had this fantasy that default_lib_dirs would get picked up 
> automagically; however that does not happen. I still ended up putting:
>            from  numpy.distutils import system_info
>            library_dirs = system_info.default_lib_dirs
>            result = 
> config_cmd.try_run(tc,include_dirs=[python_include], 
> library_dirs=library_dirs)
> into setup.py. Is that acceptable? It's not very elegant.

I think it's probably O.K. as long as it doesn't produce errors on other 
systems (and it doesn't on mine).

> The changes to setup.py in random and the M_PI, seem to have worked 
> since with the changes above it compiles and passes all of the tests 
> except for the previously mentioned test_minrelpath.
I thought I fixed minrelpath too by doing a search and replace.  Perhaps 
this did not help.


More information about the Numpy-discussion mailing list