[qmtest] Building platform-specific extension modules
Mark Mitchell
mark at codesourcery.com
Sun May 2 18:02:52 UTC 2004
Nathaniel Smith wrote:
>Does anyone know the proper way to teach distutils/qmdist that a
>particular extension module should only be built on certain (i.e.,
>POSIX) platforms?
>
>Is it as easy as modifying the ext_modules= argument to setup()
>depending on the platform that setup.py is being run on? I'm having
>worries about things like building source distributions and such.
>
>
I don't know how to do this.
One ugly-hack approach would be to wrap the extension module in:
#ifndef _WIN32
...
#endif
and just let it be empty on Windows.
If you get something that you think will work, we can easily try it out
on Windows.
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com
More information about the qmtest
mailing list