[Pyrex] finding the correct compiler

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Oct 14 05:42:53 CEST 2003


Bryan Weingarten <bryan.weingarten at pobox.com>:

> when i compile my pyrex code, distutils finds my vc 6.0 compiler.
> does anyone know how to tell distutils to use the vc .net compiler?

I believe distutils has a --compiler option for specifying which
compiler to use. But that will only help if the vc .net compiler is
one of the ones that distutils knows about, which is probably
unlikely.

I think if you set CC in the environment it will use that instead of
the value it gets from the Python makefile -- also CFLAGS, etc. You
may be able to get it to do what you want that way.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list