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

Update code to move the packages installation until user select + change extension category #164

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

haphantran
Copy link
Collaborator

This PR is to fix the current extension to be able to publish on Extension Index. Here is the requirements:
Slicer/ExtensionsIndex#2030 (comment)
Please review!.

Copy link
Collaborator

@teomesrkhani teomesrkhani left a comment

Choose a reason for hiding this comment

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

Besides the text change, the installation prompts occur only in our desired scenarios, and SlicerCineTrack is under the 'Sequences' category! Thanks!

Tested on Windows 10

try:
import openpyxl
except ModuleNotFoundError:
if slicer.util.confirmOkCancelDisplay(f"To load {fileName}, install the 'xlrd' Python package. Click OK to install now."):
Copy link
Collaborator

@teomesrkhani teomesrkhani Jun 27, 2024

Choose a reason for hiding this comment

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

Please change 'xlrd' to 'openpyxl' for this confirmation text on line 134. Thanks!

Copy link
Collaborator

@Qreign Qreign left a comment

Choose a reason for hiding this comment

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

Changes work as expected and meet the requirements, LGTM!

Tested on Windows 11

@haphantran haphantran merged commit 80959ab into main Jun 27, 2024
@haphantran haphantran deleted the move_package_installation_until_user_approve branch June 27, 2024 13:54
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