docs: add contributor instructions for Python 3.11 on Ubuntu 24.04 #29311
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
Ubuntu
24.04
ships with Python3.12
, which is not compatible with the Cypressyarn
build process. Ubuntu24.04
is currently available as a beta version and the planned release date is April 2024.If the pre-installed Python
3.12
version of Ubuntu24.04
is used byyarn install
then the build encounters the errors described in #28695 when it attempts to install the npm modules:The error messages include the following line caused by a breaking change in Python
3.12
which is incompatible with the version ofnode-gyp
currently used by Cypress:This PR adds instructions to the CONTRIBUTING document to install Python
3.11
on Ubuntu24.04
in addition to the pre-installed Python3.12
version. Python3.11
is the highest version compatible with the Cypress Yarn build process.Note: Cypress will build using the default pre-installed versions of Python on earlier versions of Ubuntu (
20.04
,23.10
and22.04
). These Ubuntu versions have Python versions3.8
,3.10
and3.11
respectively pre-installed and so no changes in instructions are necessary for these Ubuntu versions.Installation instructions
These instructions are intended for Ubuntu
24.04
only:Execute
Add the following to
~/.bashrc
export NODE_GYP_FORCE_PYTHON=/usr/bin/python3.11
Steps to test
On Ubuntu
24.04
apply the above installation instructions, then execute:The build log should contain the following steps with no errors recorded between these two lines:
How has the user experience changed?
This is a documentation change which affects only contributors to Cypress. There is no change to the user experience of end-users.
PR Tasks
cypress-documentation
?type definitions
?