繁体   English   中英

python distutils C ++编译

[英]python distutils C++ compilation

我正在尝试为Android构建python模块。

虽然我可以使用export CC=设置编译器,但是我不能对使用export CXX= C ++编译器执行相同的操作。 它仍然使用基本的C编译器。

谁能帮助我找出在构建python模块时如何配置编译器?

谢谢。

这是Windows的一些旧说明,说明如何更改编译器

    Create a file called 'distutils.cfg' in "C:\Python26\Lib\distutils".
    Open it with a text editor ('notepad distutils.cfg') and fill in the following lines:

    [build]
    compiler=mingw32

当您设法找到distutils文件夹时,其他平台也应如此。

但是setup.py / Python包可以做自己的事情,必须逐案解决。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM