0

I am trying to build a python module for android.

While I can set a compiler with export CC=, I am not able to do the same for C++ compilers using export CXX=. It still uses the basic C compiler.

Can anyone help me to figure out how to configure the compilers while building python modules?

Thanks.

4

1 回答 1

0

以下是一些旧的 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 包可以做自己的事情,这些必须逐案解决。

于 2012-01-13T21:54:16.727 回答