AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO
Python module install path wrong on MinGW
- 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
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