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

COMP: Do not use ITK_AUTOLOAD_PATH when ITK_WRAP_PYTHON is set #3331

Merged
merged 1 commit into from
Mar 28, 2022

Conversation

thewtex
Copy link
Member

@thewtex thewtex commented Mar 24, 2022

For the use case of Slicer using ITK Python wheels, ITK_AUTOLOAD_PATH
is set, and the Python wheel binaries will load the Slicer ITK binaries,
which will cause a crash.

Dynamic loading in Python is unnecessary and can be performed in a more
explicit and controlled manner by Python scripting, so disable this
feature by default when ITK_WRAP_PYTHON is set.

@github-actions github-actions bot added area:Core Issues affecting the Core module type:Compiler Compiler support or related warnings labels Mar 24, 2022
@thewtex thewtex requested review from jcfr and tbirdso March 24, 2022 03:39
For the use case of Slicer using ITK Python wheels, ITK_AUTOLOAD_PATH
is set, and the Python wheel binaries will load the Slicer ITK binaries,
which will cause a crash.

Dynamic loading in Python is unnecessary and can be performed in a more
explicit and controlled manner by Python scripting, so disable this
feature by default when ITK_WRAP_PYTHON is set.
@thewtex
Copy link
Member Author

thewtex commented Mar 24, 2022

Addresses #3332

@thewtex thewtex merged commit 9f00f9d into InsightSoftwareConsortium:master Mar 28, 2022
@thewtex thewtex deleted the slicer-loading branch March 28, 2022 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module type:Compiler Compiler support or related warnings
Projects
None yet
3 participants