extending python with a C-written dll

Steve Holden steve at holdenweb.com
Mon Dec 20 13:47:24 EST 2004


Jean-Baptiste PERIN wrote:

> 
>>
>>> >> error: Python was built with version 6 of Visual Studio, and
>>> extensions need to
>>> be built with the same version of the compiler, but it isn't installed.
>>
>>
>>
>> How do you expect to be able to write your own extension if you don't 
>> have
>> the environment to do so in the first place? that error has nothing to do
>> with python itself, but with you not having installed the right compiler.
>> THe same problem will arise building your own extension.
> 
> 
> I know it has nothing to do with python ..
> It just makes me sad to see that python cannot get rid of Visual Studoi 
> to be extended . It's just amazing !!
> 
> Python is free
> The compiler I use is free
> The code I plan to produce will be free
> 
> Where can I find a free version of Visual Studio ?
> 
> the only thing I use that is not free is the operating system and it's 
> because I had no choice .. my company decided for it
> 
>> Others suggested trying the ctypes binary installer. Do so.
> 
> 
> Yes .. that's what I'm going to do .. but I find it frustrating ..

Perhaps you aren't aware that Microsoft make a free tool chain available 
that can be used to create binary extensions? There has been some 
discussion of this recently, and I managed to compile MySQLdb and a 
couple of the mx extensions, so it's eminently doable [the PIL is 
proving a little less tractable due to dependencies on other libraries 
that I have yet to resolve].

The downloads are quite large, but if you want to try it, take a look at

   http://www.vrplumber.com/programming/mstoolkit/

regards
  Steve
-- 
Steve Holden               http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/
Holden Web LLC      +1 703 861 4237  +1 800 494 3119



More information about the Python-list mailing list