pybind / pybind/python_example
Building with MinGW
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 530
- 分支
- 150
- 平均合併
- 8 天 2 小時
- 30 天內合併 PR
- 1
描述
I tried to run setup.py with MinGW instead of Visual Studio MSVC
python setup.py build --compiler=mingw32
I get the following error:
ValueError: Unknown MS Compiler version 1916
Is there any way to make it work with MinGW?
Note that a manual compilation with MinGW works perfectly running:
g++ -static -shared -std=c++11 -DMS_WIN64 -fPIC -I C:\...\Python\Python38\Lib\site-packages\pybind11\include -I C:\ ... \Python\Python38\include -L C:\ ... \Python\Python38\libs src\main.cpp -o python_example.pyd -lPython38
but I cannot manage to make it to work with setuptools.
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 setup.py 開始,在 Windows 上使用 MinGW 重現回報的命令 python setup.py build --compiler=mingw32。追蹤對 Unknown MS Compiler version 1916 錯誤的處理,並將其與顯示的手動編譯命令進行比較。當範例能夠透過 setuptools 使用 MinGW 成功建置時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- cpp, python
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100