pybind / pybind/python_example
Building with MinGW
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 530
- フォーク
- 150
- 平均マージ
- 8日 2時間
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
setup.py から始め、報告されたコマンド python setup.py build --compiler=mingw32 を Windows 上で MinGW とともに再現します。Unknown MS Compiler version 1916 エラーの処理を追跡し、示されている手動コンパイルコマンドと比較します。例が setuptools を通じて MinGW で正常にビルドできれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp, python
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100