pybind / pybind/python_example
Building with MinGW
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 530
- Forks
- 150
- Ø Merge
- 8 T. 2 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit setup.py und reproduziere den gemeldeten Befehl python setup.py build --compiler=mingw32 unter Windows mit MinGW. Verfolge die Behandlung des Fehlers Unknown MS Compiler version 1916 und vergleiche sie mit dem gezeigten manuellen Kompilierungsbefehl. Als erledigt gilt die Aufgabe, wenn das Beispiel erfolgreich über setuptools mit MinGW erstellt wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, python
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100