Compile python extensions under windows/cygwin

Joana joanacfcampos at gmail.com
Sun May 24 19:32:57 EDT 2009


On 25 Maio, 00:13, Christian Heimes <li... at cheimes.de> wrote:
> Joana wrote:
> > I mantain Python on Windows, all installed packages are under c:
> > \Python25\Lib\site-packages. Now I have to build C libraries used by
> > python extensions and I am using cygwin, but I don't know how to
> > install the module in Windows directory.
>
> Are you sure you want to use Cygwin? Binaries build with and for Cygwin
> are not compatible with ordinary Windows binaries. I assume that you
> want to build C extensions with the open source MinGW32 compiler? That's
> easy:
>
> * Install MinGW32
> * Add its bin directory to PATH
> * Add a file distutils.cfg in C:\Python25\Lib\distutils with
>   this content:
>
> [build]
> compiler=mingw32
>
> * Have fun :)
>
> Christian

hmm.. but the problem with mingw32 is that it does not have the
libraries I need. The module I want to install includes netinet/in.h.
So the answer is that I can't install that module in Windows?



More information about the Python-list mailing list