<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ahoj</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Snžím se naučit psát rozšiřujicí moduly pro python
v C. Ale mám problém s kompilací.</FONT></DIV>
<DIV><FONT face=Arial size=2>Normálně si tohle uložím jako setup.py</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>from distutils.core import setup,
Extension</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>module1 =
Extension('demo',<BR>
sources = ['spam.c'])</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>setup (name =
'PackageName',<BR> version =
'1.0',<BR> description = 'This is a demo
package',<BR> ext_modules =
[module1])</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>a pak v příkazový řádce: python setup.py
build</FONT></DIV>
<DIV><FONT face=Arial size=2>ale to mi vrátí chybu:</FONT></DIV>
<DIV><FONT face=Arial size=2>error: Python was built with version 7.1 of Visual
Studio, and extensions need to be built with the same version of the compiler,
but it isn't installed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>co s tím ¨mám dělat?</FONT></DIV>
<DIV><FONT face=Arial size=2>děkuji</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>