Published using Google Docs
Configure Python for Use With MinGW
Updated automatically every 5 minutes

Configure Python for Use With MinGW

Configuring Python

In order to compile modules for Python with MinGW you need to configure python to know which compiler to use.  This is easily accomplished with the following steps.

Once you’ve completed these steps you should be able to build python modules with MinGW.  This document was completed as a result of needing python bindings to libxml2.

Setting up MSYS

You will need to edit your ~/.profile file and add the following lines.  This is needed because I’ve found some configure scripts do not properly ask PYTHON for the values.  In this context I am assuming you installed Python version 2.7 at c:/python27.

Copyright 2011 Earnie Boyd - Right of Use Licensei

i Earnie Boyd Open Documents License http://bit.ly/nNoAJ1