How to build extensions on Windows?

Kevin D. Smith Kevin.Smith at sas.com
Wed Sep 13 17:35:38 CEST 2006


On 2006-09-07 13:20:13 -0400, "Jason" <tenax.raccoon at gmail.com> said:
> I don't know about MinGW, but you can get the Microsoft compilers by
> installing Visual C++ 2005 Express.  I'm guessing the old toolkit is
> deprecated.  While you must register each Visual Studio Express module
> that you download, I don't think the actual command-line tools are
> encumbered.
> 
> Why not try it out and let us know how it goes?
> 
> (Visual Studio 2005 Express:
> http://msdn.microsoft.com/vstudio/express/)

This almost worked (at least, it appears to).  I got the module to 
build and install using VS 2005.  It works fine if I run python from 
the directory where I built the extension.  However, if you go to any 
other directory, run python, and try to import the module, I get the 
following error:

ImportError: dynamic module does not define init function (initsasSQL)

Why would it work from one directory, but not another?

-- 
Kevin D. Smith




More information about the Python-list mailing list