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

mach: use importlib module instead of imp #30645

Merged

Conversation

mukilan
Copy link
Member

@mukilan mukilan commented Oct 30, 2023

imp module has been deprecated since python 3.4
and has been removed in 3.12. The recommended alternative
is to use the importlib module that was introduced in
python 3.1

This is required to fix the CI failures in macos builds
since GitHub runner images for macos-13 now use python 3.12

Signed-off-by: Mukilan Thiyagarajan mukilan@igalia.com

`imp` module has been deprecated since python 3.4
and has been removed in 3.12. The recommended alternative
is to use the `importlib` module that was introduced in
python 3.1

This is required to fix the CI failures in macos builds
since GitHub runner images for macos-13 now use python 3.12

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
@sagudev sagudev added this pull request to the merge queue Oct 30, 2023
@mukilan mukilan removed this pull request from the merge queue due to a manual request Oct 30, 2023
@mukilan
Copy link
Member Author

mukilan commented Oct 30, 2023

Thanks for the review! Looks like there is one more use of imp module in python/mach/mach/main.py. I'll update this PR with the fix for that as well.

`imp` module has been deprecated since python 3.4
and has been removed in 3.12. The recommended alternative
is to use the `importlib` module that was introduced in
python 3.1

This is required to fix the CI failures in macos builds
since GitHub runner images for macos-13 now use python 3.12

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
@mrobinson mrobinson added this pull request to the merge queue Oct 30, 2023
Merged via the queue into servo:master with commit 117cc1d Oct 30, 2023
10 checks passed
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.

None yet

3 participants