![](/img/trans.png)
[英]python/c++ - Compiling shared library with cmake and installing with distutils
[英]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.