开发者

Cross-compiling python extensions under Linux using distutils

开发者 https://www.devze.com 2023-01-06 19:51 出处:网络
Is there any way to compile bot开发者_高级运维h Windows and Linux versions of Python/distutils/SWIG/C++ extensions under Linux? As far as I understand the problem is at least in obtaining windows vers

Is there any way to compile bot开发者_高级运维h Windows and Linux versions of Python/distutils/SWIG/C++ extensions under Linux? As far as I understand the problem is at least in obtaining windows version of python-dev.

Thank you.


You could do it in two ways:

  1. Install MingW on your linux system, and cross-compile the extension using it

  2. Compile it in a Windows Virtual Machine (eg. Windows7 on VirtualBox)

I prefer the second option as it gives the opportunity to test that your program is working

0

精彩评论

暂无评论...
验证码 换一张
取 消