AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Python module install path wrong on MinGW

Offen
#1,724 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Build Issue help wanted
Vorherrschende Sprache
C++
Sterne
2.1k
Forks
505
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

MinGW (at least the MSYS2 one) Python is a bit special and also uses the regular Unix location, so [the condition should probably be `if(WIN32 AND NOT MINGW)`](https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/cac1ba5feffa8a59ddd072f4fd8db62c795acf64/src/bindings/python/CMakeLists.txt#L230).

Even better the block could be [replaced by something that figures out the location form `Python_SITEARCH`](https://github.com/AcademySoftwareFoundation/Imath/blob/0dc6d0a7cbae9eb8421e7d9944ce220ddab4d13d/src/python/CMakeLists.txt#L123) (which seems to be absolute, just need to extract the relative part).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne in src/bindings/python/CMakeLists.txt ungefähr bei Zeile 230 und bilde das Installationspfadverhalten mit MinGW/MSYS2 Python nach. Vergleiche den auf Python_SITEARCH basierenden Ansatz in Imaths src/python/CMakeLists.txt und überprüfe anschließend, dass das Python-Modul unter MinGW am erwarteten Unix-style-Speicherort installiert wird, ohne andere Windows-Builds zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cmake, python
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.