Python 3.12 build error "No module named 'distutils'" - Rev2 #30955
Labels
process: contributing
Related to contributing to the Cypress codebase
type: chore
Work is required w/ no deliverable to end user
Current behavior
develop
branch and Python3.11
is required once again to build Cypress from source without error on Ubuntu. This means also that Ubuntu24.10
cannot be used because it doesn't have access to Python3.11
. Ubuntu24.10
only supports the default Python3.12
version.The
yarn install
log contains the error message:dependency: update @electron/rebuild to 3.7.1 #30633 bumped
@electron/rebuild
to3.7.1
.This met the requirement of minimum @electron/rebuild@3.7.0 to allow Python
3.12
usage.Subsequently, dependency: electron 33 upgrade #30716 bumped Electron to 33. This bumped
"electron-builder": "^23.6.0"
to"electron-builder": "^25.1.8"
(released Oct 6, 2024) and introduced@electron/rebuild@3.6.1
which is not compatible with Python3.12
Desired behavior
Revert docs: remove node-gyp contributor workarounds / restrictions #30671 to put back the Python
3.11
workarounds and instructions ORUpdate to minimum
electron-builder@^26
. This is in "pre-release" status as electron-builder@26.0.0 since Jan 26, 2025, so possibly too early for adoption at this time. electron-builder@26.0.0 depends on @electron/rebuild@3.7.0 which meets the Python3.12
compatibility requirement.Test code to reproduce
git clone https://github.com/cypress-io/cypress cd cypress npm install yarn@latest -g yarn
Cypress Version
First reported on Cypress version:
14.0.0
Reproducible also on Cypress version:
14.0.1
Node version
v22.13.1
LTSOperating System
Ubuntu
24.10
Debug Logs
Failure logs are basically the same as for #28695
node-gyp@9
has come back:The text was updated successfully, but these errors were encountered: