Skip to content

BUG: Remove check on WrapITK.pth existence in itk_python_add_test#5281

Merged
thewtex merged 1 commit intoInsightSoftwareConsortium:releasefrom
SimonRit:WrapITK.pth
Mar 19, 2025
Merged

BUG: Remove check on WrapITK.pth existence in itk_python_add_test#5281
thewtex merged 1 commit intoInsightSoftwareConsortium:releasefrom
SimonRit:WrapITK.pth

Conversation

@SimonRit
Copy link

The check fails when using itk_python_add_test in external and remote modules as the macro is called before initializing WrapITK.pth. This check was added with 22998bd but the file is always created and configured since
12e8d93 so removing the check should not harm.

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

Refer to the ITK Software Guide for
further development details if necessary.

@github-actions github-actions bot added type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots labels Mar 18, 2025
Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but Matt and/or Hans should review too.

@dzenanz dzenanz requested review from hjmjohnson and thewtex March 18, 2025 12:11
@thewtex
Copy link
Member

thewtex commented Mar 18, 2025

LGTM

@SimonRit did you want this also included in ITK 5.4.3?

@SimonRit
Copy link
Author

It would be great yes. Should I rebase on release?

@thewtex
Copy link
Member

thewtex commented Mar 19, 2025

It would be great yes. Should I rebase on release?

@SimonRit yes, please.

@SimonRit
Copy link
Author

It would be great yes. Should I rebase on release?

@SimonRit yes, please.

Done!

The check fails when using itk_python_add_test in external and remote
modules as the macro is called before initializing WrapITK.pth. This
check was added with 22998bd but the
file is always created and configured since
12e8d93 so removing the check should
not harm.
@thewtex
Copy link
Member

thewtex commented Mar 19, 2025

@SimonRit thanks!

I seem to have pushed a rebase at the exact same time BTW.

@thewtex thewtex changed the base branch from master to release March 19, 2025 10:40
@thewtex thewtex added this to the ITK 5.4.3 milestone Mar 19, 2025
@thewtex thewtex merged commit 215f4de into InsightSoftwareConsortium:release Mar 19, 2025
18 checks passed
@SimonRit SimonRit deleted the WrapITK.pth branch March 25, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants