-
Notifications
You must be signed in to change notification settings - Fork 24
COMP: Update find python method. #60
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
Conversation
| set(_QUIET_LIBRARY "REQUIRED") | ||
| endif() | ||
| find_package(PythonLibs ${_QUIET_LIBRARY}) | ||
| find_package(Python3 COMPONENTS Development ${_QUIET_LIBRARY}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A heads up that the same type of change was proposed in the main Slicer project, but resulted in issues of it picking up the System python instead of Slicer's python. See Slicer/Slicer#8578 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but resulted in issues
Ok, this cannot be a generalised solution then - it stems from an attempt to build VMTK. I'll use it in my local branch.
Thank you for the information.
|
Thank you! I don't see why CommitCheck fails, but could you add |
|
I will update the CI to remove the use of the obsolete "CommitCheck" |
178965e to
4369db1
Compare
The changes are applied. SlicerVMTK builds fine with this patch on Linux (Arch, system python 3.13.7). |
Using find_package with 'Python3 COMPONENTS Development' instead of deprecated 'PythonLibs'.
|
Closing. This is a duplicate of: |
Thanks for contributing the change and for testing 🙏 When you have a chance, could you also check the patch proposed in #59 ? |
|
When I will finalize the integration in Slicer, I will likely revisit to either:
|
Sure, I'll do that tomorrow, it's getting late here. Thanks. |
|
No problem, thanks for all your help. I've updated the git hashes in VMTK and SlicerExtension-VMTK, so if everything goes well then we'll have VMTK extension builds tomorrow morning. |
With (But Slicer ec6d323c itself fails to build for other reasons.) Thank you. |
|
Note that Slicer hasn’t been updated with the vtkaddon changes integrated yesterday. The vtkaddon hash at https://github.com/Slicer/Slicer/blob/ec6d323c4489082bc83d4cd918939d6f30148b75/SuperBuild.cmake#L203 has not been updated. |
Even with the latest vtkAddon hash (cf11265) the same build failure occurs. This seems unrelated to the recent vtkAddon changes, i.e, no success with both hashes. But I can't be that sure. |
|
These are Slicer core build errors that were introduced by my unrelated commit for adding 5D image support. The build was fine on Windows but there were error on linux. |
I was in such a mood of 'What mess have I created?' that I did a quick bisection before reading you quoted message: 😄 |
The vtkAddon changes were needed in VMTK and I updated the hashes there. What I don't understand is how it is possible that |
Using 'Python3 COMPONENTS Development' instead of 'PythonLibs'.