Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix install paths regressions #1502

Merged

Conversation

remia
Copy link
Collaborator

@remia remia commented Sep 24, 2021

Fix a regression introduced in #1471.

In some specific situations, like macOS when using system packages for most of the third party dependencies or when using DOCIO_INSTALL_EXT_PACKAGES=NONE, there is a possibility of reaching the src/bindings/python/CMakeLists.txt without GNUInstallDirs included. This patch make sure this module is imported from the root CMakeLists.txt and available for the whole project.

The unit test don't expose the issue, because they are installing some of the external package that have the GNUInstallDirs include in theirs Find*.cmake script.

Note that the analysis nightly script already installs the python binding in the root folder, as can be seen in today logs:
Set runtime path of "/python3.9/site-packages/PyOpenColorIO.so" to "$ORIGIN/../..:$ORIGIN/../lib:$ORIGIN"

Signed-off-by: Rémi Achard <remiachard@gmail.com>
Signed-off-by: Rémi Achard <remiachard@gmail.com>
@remia remia changed the title Fix install directory variable for python bindings Fix install paths regressions Sep 28, 2021
@hodoulp hodoulp merged commit 93c3689 into AcademySoftwareFoundation:master Oct 4, 2021
hodoulp added a commit that referenced this pull request Oct 4, 2021
* Fix install directory variable for python bindings

Signed-off-by: Rémi Achard <remiachard@gmail.com>

* Remove hardcoded lib prefix in RPATH handling

Signed-off-by: Rémi Achard <remiachard@gmail.com>

Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com>
hodoulp added a commit that referenced this pull request Oct 19, 2021
* Fix install directory variable for python bindings

Signed-off-by: Rémi Achard <remiachard@gmail.com>

* Remove hardcoded lib prefix in RPATH handling

Signed-off-by: Rémi Achard <remiachard@gmail.com>

Co-authored-by: Patrick Hodoul <patrick.hodoul@autodesk.com>

Co-authored-by: Rémi Achard <remiachard@gmail.com>
@remia remia deleted the fix/gnu-install-dirs branch November 3, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants