Skip to content

pyinstaller: fix CI on py<3.10 #244

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

Merged
merged 1 commit into from
Nov 15, 2022
Merged

pyinstaller: fix CI on py<3.10 #244

merged 1 commit into from
Nov 15, 2022

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Nov 15, 2022

No description provided.

@pmrowla pmrowla self-assigned this Nov 15, 2022
@pmrowla pmrowla temporarily deployed to internal November 15, 2022 10:42 Inactive
Comment on lines +8 to +15
if sys.version_info >= (3, 10):
from importlib.resources import contents
else:
from importlib_resources import contents
Copy link
Contributor Author

@pmrowla pmrowla Nov 15, 2022

Choose a reason for hiding this comment

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

importlib.resources.contents is already available in 3.7+, but due to the way pyinstaller handles importlib, we have to use the importlib_resources backport version on <3.10 for this test

Copy link
Contributor

Choose a reason for hiding this comment

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

@pmrowla Would it be worth putting a comment there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll wait and see if this CI run passes and then add the comment before merging

@pmrowla pmrowla force-pushed the fix-pyinstaller-3.10 branch from 25fead5 to 11aa9de Compare November 15, 2022 11:17
@pmrowla pmrowla temporarily deployed to internal November 15, 2022 11:17 Inactive
@pmrowla pmrowla merged commit b95c953 into main Nov 15, 2022
@pmrowla pmrowla deleted the fix-pyinstaller-3.10 branch November 15, 2022 11:18
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.

2 participants