How to compile cython module for multiple platforms on windows?
<p>Is there way to compile specified cython files for multiple platforms? If so, how to do it?</p>

<p>I need compile module for linux and windows both by one tool (also would be nice if this also can be compiled to other popular platforms).</p>

<p>This is distutils' settings?</p>

<p>I'm not sure that it will completely answer your question but if you want to distribute a python package (containing c/cython code) to various platform you can use some continuous integration services to build <code>wheels</code> on specific platforms and then distribute them.</p>

<p>For example you can use <a href="https://travis-ci.org/" rel="nofollow">Travis CI</a> (for Linux and OS X) and <a href="https://www.appveyor.com/" rel="nofollow">Appveyor</a> (for Windows) to build your project (on a set of chosen python versions), then update the created wheels alongside the code of your package to PyPI.</p>

<p>After that, an user doing <code>pip install your_package</code> will fetch the wheel of your project and so avoid compilation.</p>

<p><a href="https://packaging.python.org/distributing/#wheels" rel="nofollow">Python documentation about wheels</a><br>
<a href="https://packaging.python.org/appveyor/" rel="nofollow">Python documentation about supporting windows thanks to appveyor</a></p>

python compilation cross-platform cross-compiling cython