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

Pearu Peterson pearu at scipy.org
Thu Feb 9 14:35:07 CST 2006


On Thu, 9 Feb 2006, Tim Hochberg wrote:

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

No, don't use system_info.default_lib_dirs.

Use distutils.sysconfig.get_python_lib() to get the directory that 
contains Python library.

Pearu




More information about the Numpy-discussion mailing list