docs: Python 3.11 is highest compatible version for yarn install #28759
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
When rebuilding Cypress from source, at the stage where dependencies are installed, the following two npm modules require rebuilding, and this in turn requires that Python be installed.:
If the current version of Python
3.12.1
is installed then the rebuild fails with the following error message:This PR changes CONTRIBUTING > Requirements to document that Python
3.11
or lower be used, so that the problem does not occur.On local Windows systems, for instance, there is no pre-installed or default version of Python installed, so the version to be installed must be chosen. node-gyp recommends for Windows:
On macOS GitHub runners
macos-11
,macos-12
andmacos-13
these have Python3.12.x
installed by default.Steps to test
Install / set up the Node.js version specified by .node-version - currently
18.15.0
3.10.11
python3 --version
.17.18.4
), using the workload "Desktop development with C++" with its default selections. Select (or use Visual Studio Installer > Modify) to add Optional component Windows 10 SDK (for example10.0.20348.0
).then execute the following:
git clone https://github.com/cypress-io/cypress cd cypress npm install yarn -g yarn
Examine the logs and ensure that there are no errors recorded between the steps
How has the user experience changed?
This documentation change avoids the build error
and concerns developers only.
PR Tasks
cypress-documentation
?type definitions
?