using distutils to cross-compile extensions?

David Cournapeau cournape at gmail.com
Fri Dec 5 00:58:29 CET 2008


On Fri, Dec 5, 2008 at 7:42 AM, Michael George <mdgeorge at cs.cornell.edu> 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?

You will have more luck using wine in your case if that's an option.
General cross-compilation with distutils is for all practical purpose
impossible - except for the particular case of 32 <-> 64 bits windows,
which is fully supported.

The first step for cross compilation would be the ability to build
python itself wtih different build/host, and that's already non
trivial.

David



More information about the Python-list mailing list