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

fix(ci): pin Python 3.11 on the CI #13011

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Oct 19, 2023

What it does

GH Actions comes with Python 3.12 by default if version 3.x specified. distutils has been removed from 3.12, which causes a build problem with node-gyp. This commit pins the Python version to 3.11 on the CI.

Ref: nodejs/node-gyp#2869

Closes #13008

The credit goes to @per1234 for identifying the problem and fixing it downstream in the Arduino IDE.

How to test

The Windows CI must pass the yarn install phase.

Follow-ups

Preferably, there will be a fix in node-gyp. Theia can pick it up, and the CI can continue to use 3.x instead of 3.11 for Python.

Review checklist

Reminder for reviewers

GH Actions comes with Python 3.12 by default if version 3.x specified.
`distutils` has been removed from 3.12, which causes a build problem
with `node-gyp`. This commit pins the Python version to 3.11 on the CI.

Ref: nodejs/node-gyp#2869

Closes eclipse-theia#13008

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@tsmaeder tsmaeder self-requested a review October 20, 2023 14:26
Copy link
Contributor

@tsmaeder tsmaeder left a comment

Choose a reason for hiding this comment

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

If it fixes the builds 🤷

@tsmaeder tsmaeder merged commit c32cbda into eclipse-theia:master Oct 20, 2023
13 checks passed
@tsmaeder
Copy link
Contributor

@kittaakos do you know if we need a follow-up related to distutils?

@kittaakos
Copy link
Contributor Author

@tsmaeder, I do not know. It's a Python lib: https://docs.python.org/3.11/library/distutils.html. Hopefully, there will be a fix in nodejs/node-gyp#2869. See #13008 (comment).

@vince-fugnitto vince-fugnitto added this to the 1.43.0 milestone Oct 26, 2023
@tsmaeder tsmaeder mentioned this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CI: Windows builds must pin Python to 3.11
3 participants