using distutils to cross-compile extensions?

Robert Kern robert.kern at gmail.com
Thu Dec 4 17:46:53 EST 2008


Michael George wrote:
> Hi,
> 
> Please CC me in replying as I am off list.
> 
> I have an extension module that I've built using distutils.  I wonder if 
> it's possible to use distutils to cross-compile it for windows on my 
> linux box, and whether the pain involved is great.  Can anyone point me 
> in the right direction?

It *might* be possible with a number of ugly hacks, but the pain involved would, 
indeed, be great. distutils does not support cross-compiling at all.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list